mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
convert Hypnotic Specter to triggers.
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
Name:Hypnotic Specter
|
Name:Hypnotic Specter
|
||||||
ManaCost:1 B B
|
ManaCost:1 B B
|
||||||
Types:Creature Specter
|
Types:Creature Specter
|
||||||
Text:Whenever Hypnotic Specter deals damage to an opponent, that player discards a card at random.
|
Text:no text
|
||||||
PT:2/2
|
PT:2/2
|
||||||
K:Flying
|
K:Flying
|
||||||
|
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | Execute$ TrigDiscard | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals damage to an opponent, that player discards a card at random.
|
||||||
|
SVar:TrigDiscard:AB$Discard | Cost$ 0 | Defined$ Opponent | NumCards$ 1 | Mode$ Random
|
||||||
SVar:Rarity:Uncommon
|
SVar:Rarity:Uncommon
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/hypnotic_specter.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/hypnotic_specter.jpg
|
||||||
SetInfo:LEB|Uncommon|http://magiccards.info/scans/en/be/21.jpg
|
SetInfo:LEB|Uncommon|http://magiccards.info/scans/en/be/21.jpg
|
||||||
|
|||||||
@@ -4854,7 +4854,6 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
if(c.getName().equals("Marsh Viper")) playerCombatDamage_PoisonCounter(c, 2);
|
if(c.getName().equals("Marsh Viper")) playerCombatDamage_PoisonCounter(c, 2);
|
||||||
else if(c.getName().equals("Abyssal Specter")) opponent_Discard(c, 1);
|
else if(c.getName().equals("Abyssal Specter")) opponent_Discard(c, 1);
|
||||||
else if(c.getName().equals("Hypnotic Specter")) opponent_Discard_Random(c, 1);
|
|
||||||
else if(c.getName().equals("Nicol Bolas")) playerCombatDamage_Nicol_Bolas(c);
|
else if(c.getName().equals("Nicol Bolas")) playerCombatDamage_Nicol_Bolas(c);
|
||||||
else if(c.getName().equals("Thieving Magpie")|| c.getName().equals("Lu Xun, Scholar General")) playerCombatDamage_Shadowmage_Infiltrator(c);
|
else if(c.getName().equals("Thieving Magpie")|| c.getName().equals("Lu Xun, Scholar General")) playerCombatDamage_Shadowmage_Infiltrator(c);
|
||||||
else if(c.getName().equals("Whirling Dervish") || c.getName().equals("Dunerider Outlaw"))
|
else if(c.getName().equals("Whirling Dervish") || c.getName().equals("Dunerider Outlaw"))
|
||||||
@@ -5622,28 +5621,6 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void opponent_Discard_Random(final Card source, final int num) {
|
|
||||||
final Player player = source.getController().getOpponent();
|
|
||||||
|
|
||||||
if(source.getNetAttack() > 0 && !source.isFaceDown()) {
|
|
||||||
Ability ability = new Ability(source, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
player.discardRandom(num, this);
|
|
||||||
}
|
|
||||||
};// ability
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(source.getName()).append(" - ").append(player).append(" discards ");
|
|
||||||
sb.append(num).append(" card");
|
|
||||||
if(1 != num) sb.append("s");
|
|
||||||
sb.append(" at random");
|
|
||||||
ability.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.Stack.add(ability);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void opponent_Discard(final Card source, final int num) {
|
private static void opponent_Discard(final Card source, final int num) {
|
||||||
final Player player = source.getController().getOpponent();
|
final Player player = source.getController().getOpponent();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user