Core/Entities: Make dead units not targetable for attack again (after fc5e924138).
This commit is contained in:
1 parent
e7468b2e2c
commit
0365feb069
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user