Core/AI: call ModifyVehiclePassengerExitPos for CreatureScripts since the hook is available for that class as well

Port From (https://github.com/TrinityCore/TrinityCore/commit/64fc549be83a2be920c969c11ec20d3f2a2c8e85)
This commit is contained in:
hondacrx
2022-01-06 10:31:42 -05:00
parent 5ebe20c4ea
commit 8f8cd4a7d4
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -335,6 +335,9 @@ namespace Game.Scripting
public override bool IsDatabaseBound() { return true; }
// Called when an unit exits a vehicle
public virtual void ModifyVehiclePassengerExitPos(Unit passenger, Vehicle vehicle, Position pos) { }
// Called when a CreatureAI object is needed for the creature.
public virtual CreatureAI GetAI(Creature creature) { return null; }
}