From 82f45966fc00106b52294e4c01a2848ba24e2eb8 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 17 Dec 2010 13:43:24 +0100 Subject: Core/Unit: Renamed addUnitState/hasUnitState/clearUnitState to AddUnitState/HasUnitState/ClearUnitState Core/Vehicles: Allow the vehicle to always damage the passenger (removed unneded dbc hacks from scripts) --HG-- branch : trunk --- src/server/scripts/World/npcs_special.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/World') diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp index 66b8e400a71..2fe252ff098 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -1873,7 +1873,7 @@ public: Unit *owner = me->GetCharmerOrOwner(); me->CombatStop(true); - if (owner && !me->hasUnitState(UNIT_STAT_FOLLOW)) + if (owner && !me->HasUnitState(UNIT_STAT_FOLLOW)) { me->GetMotionMaster()->Clear(false); me->GetMotionMaster()->MoveFollow(owner, PET_FOLLOW_DIST, me->GetFollowAngle(), MOTION_SLOT_ACTIVE); @@ -2056,7 +2056,7 @@ public: if (!UpdateVictim()) return; - if (!me->hasUnitState(UNIT_STAT_STUNNED)) + if (!me->HasUnitState(UNIT_STAT_STUNNED)) me->SetControlled(true,UNIT_STAT_STUNNED);//disable rotate if (uiEntry != NPC_ADVANCED_TARGET_DUMMY && uiEntry != NPC_TARGET_DUMMY) -- cgit v1.2.3