diff options
author | megamage <none@none> | 2009-06-05 14:21:25 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-05 14:21:25 -0500 |
commit | 13fd9ea601e666ea0381d6cfafc20e316fa3f90e (patch) | |
tree | fe9774a33b917171f5525e15611dfdd071e25740 /src/game/Vehicle.cpp | |
parent | afd79d7ebfc9db0045e74b56a4ecd4ae520552a7 (diff) |
*Apply tenacity buff on vehicles of wintergrasp.
*Fix the bug that tenacity is not applied on horde players.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Vehicle.cpp')
-rw-r--r-- | src/game/Vehicle.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Vehicle.cpp b/src/game/Vehicle.cpp index 94f828bfaf6..3efe735a5b5 100644 --- a/src/game/Vehicle.cpp +++ b/src/game/Vehicle.cpp @@ -26,6 +26,7 @@ #include "Chat.h" #include "CreatureAI.h" +#include "ZoneScript.h" Vehicle::Vehicle() : Creature(), m_vehicleInfo(NULL), m_usableSeatNum(0) { @@ -41,6 +42,8 @@ void Vehicle::AddToWorld() { if(!IsInWorld()) { + if(m_zoneScript) + m_zoneScript->OnCreatureCreate(this, true); ObjectAccessor::Instance().AddObject(this); Unit::AddToWorld(); AIM_Initialize(); @@ -58,6 +61,8 @@ void Vehicle::RemoveFromWorld() { if(IsInWorld()) { + if(m_zoneScript) + m_zoneScript->OnCreatureCreate(this, false); RemoveAllPassengers(); ///- Don't call the function for Creature, normal mobs + totems go in a different storage Unit::RemoveFromWorld(); |