mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Completed conversion of Energy Storm.
This commit is contained in:
@@ -5,6 +5,7 @@ Text:no text
|
||||
K:Cumulative upkeep:1
|
||||
K:Permanents don't untap during their controllers' untap steps:Creature.withFlying
|
||||
K:stPreventDamage:Player:Instant,Sorcery:All:Prevent all damage that would be dealt by instant and sorcery spells. Creatures with flying don't untap during their controller's untap step.
|
||||
K:stPreventDamage:Permanent:Spell:1:no text
|
||||
SVar:RemRandomDeck:True
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/energy_storm.jpg
|
||||
|
||||
@@ -3171,12 +3171,8 @@ public class Card extends MyObservable {
|
||||
|
||||
restDamage = staticReplaceDamage(restDamage, source, isCombat);
|
||||
|
||||
if(AllZoneUtil.isCardInPlay("Leyline of Punishment")) return restDamage;
|
||||
|
||||
restDamage = staticDamagePrevention(restDamage, source, isCombat);
|
||||
|
||||
if(getName().equals("Swans of Bryn Argoll")) return 0;
|
||||
|
||||
return restDamage;
|
||||
}
|
||||
|
||||
@@ -3237,30 +3233,15 @@ public class Card extends MyObservable {
|
||||
|
||||
// specific Cards
|
||||
if(isCreature()) { //and not a planeswalker
|
||||
if(getName().equals("Swans of Bryn Argoll")) return 0;
|
||||
|
||||
if((source.isCreature() && AllZoneUtil.isCardInPlay("Well-Laid Plans") && source.sharesColorWith(this)))return 0;
|
||||
|
||||
if((!isCombat && AllZoneUtil.isCardInPlay("Mark of Asylum", player)))return 0;
|
||||
|
||||
/*
|
||||
if((AllZoneUtil.isCardInPlay("Light of Sanction", player) && source.getController().isPlayer(player)))
|
||||
return 0;
|
||||
|
||||
if (AllZoneUtil.isCardInPlay("Plated Pegasus") && source.isSpell()&& restDamage > 0) {
|
||||
int amount = AllZoneUtil.getCardsInPlay("Plated Pegasus").size();
|
||||
for (int i = 0; i < amount;i++)
|
||||
if ( restDamage > 0 ) %
|
||||
restDamage -= 1;
|
||||
}
|
||||
|
||||
if (isType("Cleric") && AllZoneUtil.isCardInPlay("Daunting Defender", player))
|
||||
restDamage = restDamage - AllZoneUtil.getPlayerCardsInPlay(player, "Daunting Defender").size();
|
||||
*/
|
||||
|
||||
|
||||
if(getName().equals("Callous Giant") && restDamage <= 3) return 0;
|
||||
} //Creature end
|
||||
|
||||
if (AllZoneUtil.isCardInPlay("Energy Storm") && source.isSpell()) return 0;
|
||||
|
||||
if ( restDamage > 0)
|
||||
return restDamage;
|
||||
else return 0;
|
||||
|
||||
Reference in New Issue
Block a user