Scripts/Auchindoun: Fix distance check in boss Shirrak
Issue added in 88137c07b9
This commit is contained in:
1 parent
151a0f5c5e
commit
a7847728a5
1 file changed
+1
-1
+1
-1
@@ -113,7 +113,7 @@ public:
|
||||
Map::PlayerList const &PlayerList = map->GetPlayers();
|
||||
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
|
||||
if (Player* i_pl = i->GetSource())
|
||||
if (i_pl->IsAlive() && (dist = i_pl->IsWithinDist(me, 45)))
|
||||
if (i_pl->IsAlive() && (dist = i_pl->GetDistance(me)) < 45)
|
||||
{
|
||||
i_pl->RemoveAurasDueToSpell(SPELL_INHIBITMAGIC);
|
||||
me->AddAura(SPELL_INHIBITMAGIC, i_pl);
|
||||
|
||||
Reference in new issue
Block a user