Core/Entities: Make dead units not targetable for attack again (after fc5e924138).

This commit is contained in:
QAston
2011-08-23 14:47:26 +02:00
parent e7468b2e2c
commit 0365feb069
+3
View File
@@ -12258,6 +12258,9 @@ void Unit::ClearInCombat()
bool Unit::isTargetableForAttack(bool checkFakeDeath) const
{
if (!isAlive())
return false;
if (HasFlag(UNIT_FIELD_FLAGS,
UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_OOC_NOT_ATTACKABLE))
return false;