Core/Spells: Permanent Feign Death will now also make the creature set its creature state passive

This commit is contained in:
root committed 2011-12-24 23:44:51 +01:00
1 parent f8e6364905
commit c14e7ec385
1 file changed
+3
@@ -566,6 +566,9 @@ class spell_creature_permanent_feign_death : public SpellScriptLoader
Unit* target = GetTarget();
target->SetFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_DEAD);
target->SetFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FEIGN_DEATH);
if (target->GetTypeId() == TYPEID_UNIT)
target->ToCreature()->SetReactState(REACT_PASSIVE);
}
void Register()