*Use react state instead of isaggressive. Allow civilian to fight back.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2008-12-07 09:21:12 -06:00
1 parent f593c806cb
commit 087f735251
8 files changed
+22 -18

No files matched your search

+1 -1
View File
@@ -9592,7 +9592,7 @@ void Unit::CombatStart(Unit* target)
target->SetStandState(PLAYER_STATE_NONE);
if(!target->isInCombat() && target->GetTypeId() != TYPEID_PLAYER
&& ((Creature*)target)->isAggressive() && ((Creature*)target)->AI())
&& !((Creature*)target)->HasReactState(REACT_PASSIVE) && ((Creature*)target)->AI())
{
SetInCombatWith(target);
target->SetInCombatWith(this);