mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +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) {
|
||||
Spell spell = game.getStack().getSpell(event.getTargetId());
|
||||
MageObject mageObject = game.getObject(sourceId);
|
||||
if (spell != null
|
||||
&& !spell.isCopy()
|
||||
&& spell.getCard() != null
|
||||
&& !spell.getCard().isCopy()) {
|
||||
if (spell != null) {
|
||||
game.getState().setValue("avenShrine" + mageObject, spell);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -93,10 +93,7 @@ class DwarvenShrineTriggeredAbility extends TriggeredAbilityImpl {
|
|||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Spell spell = game.getStack().getSpell(event.getTargetId());
|
||||
MageObject mageObject = game.getObject(sourceId);
|
||||
if (spell != null
|
||||
&& !spell.isCopy()
|
||||
&& spell.getCard() != null
|
||||
&& !spell.getCard().isCopy()) {
|
||||
if (spell != null) {
|
||||
game.getState().setValue("dwarvenShrine" + mageObject, spell);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue