mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
added isInstantOrSorcery method to MageObject
This commit is contained in:
parent
2ba78391f1
commit
aa63a262b6
2 changed files with 7 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ class ErraticCyclopsTriggeredAbility extends TriggeredAbilityImpl {
|
|||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Spell spell = game.getStack().getSpell(event.getTargetId());
|
||||
if (spell != null && spell.isControlledBy(controllerId)
|
||||
&& (spell.isInstant() || spell.isSorcery())) {
|
||||
&& spell.isInstantOrSorcery()) {
|
||||
this.getEffects().clear();
|
||||
this.addEffect(new BoostSourceEffect(
|
||||
spell.getConvertedManaCost(), 0, Duration.EndOfTurn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue