*Use react state instead of isaggressive. Allow civilian to fight back.
--HG-- branch : trunk
This commit is contained in:
1 parent
f593c806cb
commit
087f735251
8 files changed
+22
-18
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user