Scripts/Auchindoun: Fix distance check in boss Shirrak

Issue added in 88137c07b9
This commit is contained in:
jackpoz committed 2015-06-03 20:40:08 +02:00
1 parent 151a0f5c5e
commit a7847728a5
1 file changed
+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);