fixed Dovin, Hand of Control's static ability not applying

This commit is contained in:
Evan Kranzler 2019-04-24 12:22:02 -04:00
parent 5bb27f6146
commit 619096cbbd

View file

@ -75,12 +75,9 @@ class DovinHandOfControlEffect extends CostModificationEffectImpl {
@Override @Override
public boolean applies(Ability abilityToModify, Ability source, Game game) { public boolean applies(Ability abilityToModify, Ability source, Game game) {
Card card = game.getCard(abilityToModify.getId()); Card card = game.getCard(abilityToModify.getSourceId());
if (card == null || (!card.isInstantOrSorcery() && !card.isArtifact()) return card != null && (card.isInstantOrSorcery() || card.isArtifact())
|| game.getOpponents(source.getControllerId()).contains(abilityToModify.getControllerId())) { && game.getOpponents(source.getControllerId()).contains(abilityToModify.getControllerId());
return false;
}
return true;
} }
@Override @Override