Skip to content
Permalink
Browse files

Core/AI: call ModifyVehiclePassengerExitPos for CreatureScripts since…

… the hook is available for that class as well
  • Loading branch information
Ovahlord committed Jan 28, 2020
1 parent de7d9f2 commit ebf116e6a3381835fd2af885bd2721233485b684
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/server/game/Scripting/ScriptMgr.cpp
@@ -2113,6 +2113,7 @@ void ScriptMgr::ModifySpellDamageTaken(Unit* target, Unit* attacker, int32& dama
void ScriptMgr::ModifyVehiclePassengerExitPos(Unit* passenger, Vehicle* vehicle, Position& pos)
{
FOREACH_SCRIPT(UnitScript)->ModifyVehiclePassengerExitPos(passenger, vehicle, pos);
FOREACH_SCRIPT(CreatureScript)->ModifyVehiclePassengerExitPos(passenger, vehicle, pos);
}

SpellScriptLoader::SpellScriptLoader(char const* name)

0 comments on commit ebf116e

Please sign in to comment.
You can’t perform that action at this time.