mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
fixed Dovin, Hand of Control's static ability not applying
This commit is contained in:
parent
5bb27f6146
commit
619096cbbd
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue