mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
- Removed unneeded spell copy checks
This commit is contained in:
parent
ddc43d05f6
commit
ec77cecbf6
2 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue