Core/Spells: Allow AoE spells to target dead units.
Also removes some unneeded checks from ally targeting. --HG-- branch : trunk
This commit is contained in:
1 parent
ec5edaf6bf
commit
a582ab9d9d
4 files changed
+16
-8
No files matched your search
@@ -12094,9 +12094,9 @@ bool Unit::canAttack(Unit const* target, bool force) const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Unit::isAttackableByAOE() const
|
||||
bool Unit::isAttackableByAOE(bool requireDeadTarget) const
|
||||
{
|
||||
if (!isAlive())
|
||||
if (isAlive() == requireDeadTarget)
|
||||
return false;
|
||||
|
||||
if (HasFlag(UNIT_FIELD_FLAGS,
|
||||
|
||||
Reference in new issue
Block a user