Corrected some logic in my recent commits.

- ff2dbfc381 thanks LihO
- 6ccf95af4c thanks frostmourne
This commit is contained in:
kaelima
2011-12-22 18:48:06 +01:00
parent ce0dfa88a6
commit 398299084e
2 changed files with 11 additions and 8 deletions

View File

@@ -840,7 +840,7 @@ public:
{
DoCast(target, SPELL_MULTI_SHOT);
}
else if (target)
else
{
Map::PlayerList const& players = me->GetMap()->GetPlayers();
if (me->GetMap()->IsDungeon() && !players.isEmpty())
@@ -850,7 +850,7 @@ public:
Player* player = itr->getSource();
if (player && !player->isGameMaster() && me->IsInRange(player, 5.0f, 30.0f, false))
{
DoCast(target, SPELL_MULTI_SHOT);
DoCast(player, SPELL_MULTI_SHOT);
break;
}
}