*Fix arcane charge.

*SetInCombatWith in dozoneincombat.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2008-11-24 15:15:09 -06:00
1 parent 7076f12b67
commit 46dec5a819
2 files changed
+8 -2

No files matched your search

@@ -671,9 +671,15 @@ void ScriptedAI::DoZoneInCombat(Unit* pUnit)
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())
{
pUnit->SetInCombatWith(i_pl);
i_pl->SetInCombatWith(pUnit);
pUnit->AddThreat(i_pl, 0.0f);
}
}
}
void ScriptedAI::DoResetThreat()