(5e82d9084) PropertyConditionals return a match when checking status tag inequality and the target has no status tags (e.g. checking if a character doesn't have a StatusEffect with a "poison" tag should return true even if the character has no active StatusEffects).

This commit is contained in:
Joonas Rikkonen
2019-03-30 15:34:42 +02:00
parent 7a32e07298
commit 57a84f4b3d

View File

@@ -211,6 +211,11 @@ namespace Barotrauma
return success;
}
}
else if (Operator == OperatorType.NotEquals)
{
//no status effects, so the tags cannot be equal -> condition met
return true;
}
return success;
case ConditionType.SpeciesName:
Character targetCharacter = target as Character;