mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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
|
@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
|
||||||
|
|
Loading…
Reference in a new issue