dead flag -> !isActive

develop
PatrikLundell 2018-06-14 12:35:17 +02:00
parent cac749429a
commit cf780ce035
1 changed files with 2 additions and 2 deletions

@ -1343,12 +1343,12 @@ static bool canTargetUnit(df::unit *unit)
{ {
CHECK_NULL_POINTER(unit); CHECK_NULL_POINTER(unit);
if (unit->flags1.bits.dead || if (!Units::isActive(unit) ||
unit->flags1.bits.caged || unit->flags1.bits.caged ||
unit->flags1.bits.left || unit->flags1.bits.left ||
unit->flags1.bits.incoming || unit->flags1.bits.incoming ||
unit->flags1.bits.hidden_in_ambush || unit->flags1.bits.hidden_in_ambush ||
unit->flags3.bits.ghostly) Units::isGhost(unit))
return false; return false;
return true; return true;