mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Converted Linvala, Keeper of Silence to script.
This commit is contained in:
@@ -39,15 +39,7 @@ abstract public class Ability extends SpellAbility {
|
||||
return c.getSVar("PithingTarget").equals(sourceCardName);
|
||||
}
|
||||
});
|
||||
|
||||
if(getSourceCard().isCreature() == true) {
|
||||
CardList Silence = AllZoneUtil.getPlayerCardsInPlay(getSourceCard().getController().getOpponent());
|
||||
Silence = Silence.getName("Linvala, Keeper of Silence");
|
||||
|
||||
return AllZone.GameAction.isCardInPlay(getSourceCard()) && !getSourceCard().isFaceDown() && getSourceCard().getName().equals("Spreading Seas") == false && Silence.size() == 0 && Pithing.size() == 0; // For Spreading Seas
|
||||
}
|
||||
|
||||
|
||||
|
||||
return AllZone.GameAction.isCardInPlay(getSourceCard()) && !getSourceCard().isFaceDown() && getSourceCard().getName().equals("Spreading Seas") == false && Pithing.size() == 0;
|
||||
// return false;
|
||||
}
|
||||
|
||||
@@ -39,13 +39,6 @@ abstract public class Ability_Activated extends SpellAbility implements java.io.
|
||||
});
|
||||
|
||||
if(Pithing.size() != 0) return false;
|
||||
|
||||
if(c.isCreature() && AllZone.getZone(c).is(Constant.Zone.Battlefield)) {
|
||||
CardList Silence = AllZoneUtil.getPlayerCardsInPlay(getSourceCard().getController().getOpponent());
|
||||
Silence = Silence.getName("Linvala, Keeper of Silence");
|
||||
if (Silence.size() != 0)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!(getRestrictions().canPlay(c, this)))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user