Core/Script: add script hook to allow overriding of a vehicle passenger's exit position

Port From (https://github.com/TrinityCore/TrinityCore/commit/1edd93bc0c443cdabc104af9f440e07b6d473a08)
This commit is contained in:
hondacrx
2021-12-16 12:47:54 -05:00
parent 589d845093
commit 40f6c9a9fd
3 changed files with 20 additions and 8 deletions
+3
View File
@@ -303,6 +303,9 @@ namespace Game.Scripting
// Called when Spell Damage is being Dealt
public virtual void ModifySpellDamageTaken(Unit target, Unit attacker, ref int damage, SpellInfo spellInfo) { }
// Called when an unit exits a vehicle
public virtual void ModifyVehiclePassengerExitPos(Unit passenger, Vehicle vehicle, Position pos) { }
}
public class GenericCreatureScript<AI> : CreatureScript where AI : CreatureAI