- Removed unneeded spell copy checks

This commit is contained in:
Jeff 2018-03-22 08:07:40 -05:00
parent ddc43d05f6
commit ec77cecbf6
2 changed files with 2 additions and 8 deletions

View file

@ -93,10 +93,7 @@ class AvenShrineTriggeredAbility extends TriggeredAbilityImpl {
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
Spell spell = game.getStack().getSpell(event.getTargetId()); Spell spell = game.getStack().getSpell(event.getTargetId());
MageObject mageObject = game.getObject(sourceId); MageObject mageObject = game.getObject(sourceId);
if (spell != null if (spell != null) {
&& !spell.isCopy()
&& spell.getCard() != null
&& !spell.getCard().isCopy()) {
game.getState().setValue("avenShrine" + mageObject, spell); game.getState().setValue("avenShrine" + mageObject, spell);
return true; return true;
} }

View file

@ -93,10 +93,7 @@ class DwarvenShrineTriggeredAbility extends TriggeredAbilityImpl {
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
Spell spell = game.getStack().getSpell(event.getTargetId()); Spell spell = game.getStack().getSpell(event.getTargetId());
MageObject mageObject = game.getObject(sourceId); MageObject mageObject = game.getObject(sourceId);
if (spell != null if (spell != null) {
&& !spell.isCopy()
&& spell.getCard() != null
&& !spell.getCard().isCopy()) {
game.getState().setValue("dwarvenShrine" + mageObject, spell); game.getState().setValue("dwarvenShrine" + mageObject, spell);
return true; return true;
} }