diff options
author | megamage <none@none> | 2009-08-08 11:56:54 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-08 11:56:54 -0500 |
commit | 9952786d149cc600c71b32787b3e704bd9ed174b (patch) | |
tree | dc0cba59d0201ee80cd8e8623323ac768f295116 /src | |
parent | ecdba0cbba9ee7a49e6b5b73040508a7768bfc7e (diff) |
*Also aggro player-controlled units in dozoneincombat.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/CreatureAI.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp index 6c6df7ac09e..cfe72f654eb 100644 --- a/src/game/CreatureAI.cpp +++ b/src/game/CreatureAI.cpp @@ -91,6 +91,13 @@ void CreatureAI::DoZoneInCombat(Creature* creature) pPlayer->SetInCombatWith(creature); creature->AddThreat(pPlayer, 0.0f); } + + for(Unit::ControlList::const_iterator itr = pPlayer->m_Controlled.begin(); itr != pPlayer->m_Controlled.end(); ++itr) + { + creature->SetInCombatWith(*itr); + (*itr)->SetInCombatWith(creature); + creature->AddThreat(*itr, 0.0f); + } } } } |