added new class for "this or another" triggered abilities

This commit is contained in:
Evan Kranzler 2020-06-25 20:14:48 -04:00
parent 6c69939c0d
commit a379a06485
32 changed files with 389 additions and 672 deletions

View file

@ -53,7 +53,7 @@ public class ConstellationAbility extends TriggeredAbilityImpl {
return false;
}
Permanent permanent = game.getPermanent(event.getTargetId());
return permanent != null && permanent.isEnchantment();
return permanent != null && ((thisOr && permanent.getId().equals(getSourceId())) || permanent.isEnchantment());
}
@Override