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:
@@ -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; }
|
||||
}
|
||||
|
||||
@@ -1105,6 +1105,7 @@ namespace Game.Scripting
|
||||
public void ModifyVehiclePassengerExitPos(Unit passenger, Vehicle vehicle, Position pos)
|
||||
{
|
||||
ForEach<UnitScript>(p => p.ModifyVehiclePassengerExitPos(passenger, vehicle, pos));
|
||||
ForEach<CreatureScript>(p => p.ModifyVehiclePassengerExitPos(passenger, vehicle, pos));
|
||||
}
|
||||
|
||||
// AreaTriggerEntityScript
|
||||
|
||||
Reference in New Issue
Block a user