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
public boolean applies(Ability abilityToModify, Ability source, Game game) {
Card card = game.getCard(abilityToModify.getId());
if (card == null || (!card.isInstantOrSorcery() && !card.isArtifact())
|| game.getOpponents(source.getControllerId()).contains(abilityToModify.getControllerId())) {
return false;
}
return true;
Card card = game.getCard(abilityToModify.getSourceId());
return card != null && (card.isInstantOrSorcery() || card.isArtifact())
&& game.getOpponents(source.getControllerId()).contains(abilityToModify.getControllerId());
}
@Override