mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
Edited applies and checksEventType
This commit is contained in:
parent
75ff9e430a
commit
51bfbc6705
1 changed files with 4 additions and 7 deletions
|
|
@ -104,18 +104,15 @@ class DampingSphereReplacementEffect extends ReplacementEffectImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checksEventType(GameEvent event, Game game) {
|
public boolean checksEventType(GameEvent event, Game game) {
|
||||||
if (event.getType() == EventType.TAPPED_FOR_MANA) {
|
return event.getType() == EventType.TAPPED_FOR_MANA;
|
||||||
ManaEvent manaEvent = (ManaEvent) event;
|
|
||||||
Mana mana = manaEvent.getMana();
|
|
||||||
return mana.count() > 1;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||||
MageObject mageObject = game.getObject(event.getSourceId());
|
MageObject mageObject = game.getObject(event.getSourceId());
|
||||||
return mageObject != null && mageObject.isLand();
|
ManaEvent manaEvent = (ManaEvent) event;
|
||||||
|
Mana mana = manaEvent.getMana();
|
||||||
|
return mageObject != null && mageObject.isLand() && mana.count() > 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue