mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[MID] Fix Unblinking Observer mana condition
This commit is contained in:
parent
c68ef669e0
commit
543c19bd2c
1 changed files with 4 additions and 1 deletions
|
@ -75,11 +75,14 @@ class UnblinkingObserverManaCondition extends ManaCondition implements Condition
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
|
if (source instanceof DisturbAbility) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (source instanceof SpellAbility) {
|
if (source instanceof SpellAbility) {
|
||||||
MageObject object = game.getObject(source);
|
MageObject object = game.getObject(source);
|
||||||
return object != null && object.isInstantOrSorcery(game);
|
return object != null && object.isInstantOrSorcery(game);
|
||||||
}
|
}
|
||||||
return source instanceof DisturbAbility;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue