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/Outland/TempestKeep/Eye/boss_kaelthas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Outland/TempestKeep') diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp index a62941ef49c..332658d97d0 100644 --- a/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp +++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp @@ -398,7 +398,7 @@ class boss_kaelthas : public CreatureScript void MoveInLineOfSight(Unit *who) { - if (!me->hasUnitState(UNIT_STAT_STUNNED) && who->isTargetableForAttack() && + if (!me->HasUnitState(UNIT_STAT_STUNNED) && who->isTargetableForAttack() && me->IsHostileTo(who) && who->isInAccessiblePlaceFor(me)) { if (!me->canFly() && me->GetDistanceZ(who) > CREATURE_Z_ATTACK_RANGE) -- cgit v1.2.3