Core/Spells: Fix typo in b0fe236265 , thx A-Metaphysical-Drama
This commit is contained in:
@@ -1319,7 +1319,7 @@ bool CreatureEventAI::CanCast(Unit* Target, SpellInfo const *Spell, bool Trigger
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Unit is out of range of this spell
|
//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 false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -63,11 +63,9 @@ void BattlegroundRV::Update(uint32 diff)
|
|||||||
switch(getState())
|
switch(getState())
|
||||||
{
|
{
|
||||||
case BG_RV_STATE_OPEN_FENCES:
|
case BG_RV_STATE_OPEN_FENCES:
|
||||||
{
|
|
||||||
setTimer(BG_RV_PILAR_TO_FIRE_TIMER);
|
setTimer(BG_RV_PILAR_TO_FIRE_TIMER);
|
||||||
setState(BG_RV_STATE_CLOSE_FIRE);
|
setState(BG_RV_STATE_CLOSE_FIRE);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case BG_RV_STATE_CLOSE_FIRE:
|
case BG_RV_STATE_CLOSE_FIRE:
|
||||||
for (i = BG_RV_OBJECT_FIRE_1; i <= BG_RV_OBJECT_FIREDOOR_2; ++i)
|
for (i = BG_RV_OBJECT_FIRE_1; i <= BG_RV_OBJECT_FIREDOOR_2; ++i)
|
||||||
DoorClose(i);
|
DoorClose(i);
|
||||||
@@ -88,7 +86,6 @@ void BattlegroundRV::Update(uint32 diff)
|
|||||||
setState(BG_RV_STATE_CLOSE_PILARS);
|
setState(BG_RV_STATE_CLOSE_PILARS);
|
||||||
break;
|
break;
|
||||||
case BG_RV_STATE_CLOSE_PILARS:
|
case BG_RV_STATE_CLOSE_PILARS:
|
||||||
uint32 i;
|
|
||||||
for (i = BG_RV_OBJECT_PILAR_1; i <= BG_RV_OBJECT_PULLEY_2; ++i)
|
for (i = BG_RV_OBJECT_PILAR_1; i <= BG_RV_OBJECT_PULLEY_2; ++i)
|
||||||
DoorOpen(i);
|
DoorOpen(i);
|
||||||
setTimer(BG_RV_PILAR_TO_FIRE_TIMER);
|
setTimer(BG_RV_PILAR_TO_FIRE_TIMER);
|
||||||
|
|||||||
Reference in New Issue
Block a user