fixed Ur-Dragon trigger

This commit is contained in:
Evan Kranzler 2017-08-20 12:00:12 -04:00
parent 2b5f5463e6
commit 2861e5f86f

View file

@ -166,7 +166,7 @@ class TheUrDragonTriggeredAbility extends TriggeredAbilityImpl {
public boolean checkTrigger(GameEvent event, Game game) {
for (UUID attacker : game.getCombat().getAttackers()) {
Permanent creature = game.getPermanent(attacker);
if (creature != null && creature.getControllerId() == event.getPlayerId() && creature.getSubtype(game).contains(SubType.DRAGON)) {
if (creature != null && creature.getControllerId() == this.getControllerId() && creature.getSubtype(game).contains(SubType.DRAGON)) {
return true;
}
}