public override bool checkCondition(SportsObject triggeringObject) { return triggeringObject.GetType() == selector.targetType() && conditionZone.objectsInZone.Contains(triggeringObject); }
public override bool checkCondition(SportsObject triggeringObject) { return GameRules.derivesFrom(triggeringObject.GetType(), selector.targetType()) && conditionZone.objectsInZone.Contains(triggeringObject); }