From 2056af63f01c177376fc6bebb41ce158cc6016b4 Mon Sep 17 00:00:00 2001 From: tobmaps Date: Fri, 5 Aug 2011 01:46:35 +0700 Subject: Core/Spells: Fix typo in b0fe236265465a0f39aa98a8cee2916d1ccfaa02 , thx A-Metaphysical-Drama --- src/server/game/AI/EventAI/CreatureEventAI.cpp | 2 +- src/server/game/Battlegrounds/Zones/BattlegroundRV.cpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/server') diff --git a/src/server/game/AI/EventAI/CreatureEventAI.cpp b/src/server/game/AI/EventAI/CreatureEventAI.cpp index fa2c0e3856b..a1a3cc6c48a 100755 --- a/src/server/game/AI/EventAI/CreatureEventAI.cpp +++ b/src/server/game/AI/EventAI/CreatureEventAI.cpp @@ -1319,7 +1319,7 @@ bool CreatureEventAI::CanCast(Unit* Target, SpellInfo const *Spell, bool Trigger return false; //Unit is out of range of this spell - if (!me->IsInRange(Target, Spell->GetMinRange(false), Spell->GetMinRange(true))) + if (!me->IsInRange(Target, Spell->GetMinRange(false), Spell->GetMaxRange(false))) return false; return true; diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundRV.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundRV.cpp index dc06e5453f9..f8518db6f5a 100755 --- a/src/server/game/Battlegrounds/Zones/BattlegroundRV.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundRV.cpp @@ -63,11 +63,9 @@ void BattlegroundRV::Update(uint32 diff) switch(getState()) { case BG_RV_STATE_OPEN_FENCES: - { setTimer(BG_RV_PILAR_TO_FIRE_TIMER); setState(BG_RV_STATE_CLOSE_FIRE); break; - } case BG_RV_STATE_CLOSE_FIRE: for (i = BG_RV_OBJECT_FIRE_1; i <= BG_RV_OBJECT_FIREDOOR_2; ++i) DoorClose(i); @@ -88,7 +86,6 @@ void BattlegroundRV::Update(uint32 diff) setState(BG_RV_STATE_CLOSE_PILARS); break; case BG_RV_STATE_CLOSE_PILARS: - uint32 i; for (i = BG_RV_OBJECT_PILAR_1; i <= BG_RV_OBJECT_PULLEY_2; ++i) DoorOpen(i); setTimer(BG_RV_PILAR_TO_FIRE_TIMER); -- cgit v1.2.3