mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
convert Guilty Conscience to triggers
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
Name:Guilty Conscience
|
Name:Guilty Conscience
|
||||||
ManaCost:W
|
ManaCost:W
|
||||||
Types:Enchantment Aura
|
Types:Enchantment Aura
|
||||||
Text:Whenever enchanted creature deals damage, Guilty Conscience deals that much damage to that creature.
|
Text:no text
|
||||||
K:Enchant creature
|
K:Enchant creature
|
||||||
|
T:Mode$ DamageDone | ValidSource$ Card.AttachedBy | Execute$ TrigDamage | TriggerZones$ Battlefield | TriggerDescription$ Whenever enchanted creature deals damage, CARDNAME deals that much damage to that creature.
|
||||||
|
SVar:TrigDamage:AB$DealDamage | Cost$ 0 | Defined$ Enchanted | NumDmg$ X
|
||||||
|
SVar:X:Count$TriggeredDamageAmount
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/guilty_conscience.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/guilty_conscience.jpg
|
||||||
SetInfo:SCG|Common|http://magiccards.info/scans/en/sc/17.jpg
|
SetInfo:SCG|Common|http://magiccards.info/scans/en/sc/17.jpg
|
||||||
|
|||||||
@@ -2915,45 +2915,6 @@ public class GameActionUtil {
|
|||||||
if(source.getKeyword().contains("Deathtouch") && affected.isCreature()) AllZone.GameAction.destroy(affected);
|
if(source.getKeyword().contains("Deathtouch") && affected.isCreature()) AllZone.GameAction.destroy(affected);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void executeGuiltyConscienceEffects(Card c, Card source) {
|
|
||||||
int pwr = c.getNetCombatDamage();
|
|
||||||
final int damage = pwr;
|
|
||||||
final Card src = source;
|
|
||||||
|
|
||||||
final Card crd = c;
|
|
||||||
Ability ability2 = new Ability(c, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
crd.addDamage(damage, src);
|
|
||||||
}
|
|
||||||
}; // ability2
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("Guilty Conscience deals ").append(damage).append(" damage to ").append(c.getName());
|
|
||||||
ability2.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
if (damage >= 0)
|
|
||||||
AllZone.Stack.add(ability2);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void executeGuiltyConscienceEffects(Card c, Card source, int n) {
|
|
||||||
final int damage = n;
|
|
||||||
final Card crd = c;
|
|
||||||
final Card src = source;
|
|
||||||
Ability ability2 = new Ability(c, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
crd.addDamage(damage, src);
|
|
||||||
}
|
|
||||||
}; // ability2
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("Guilty Conscience deals ").append(n).append(" damage to ").append(c.getName());
|
|
||||||
ability2.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void executeSwordOfLightAndShadowEffects(final Card source) {
|
public static void executeSwordOfLightAndShadowEffects(final Card source) {
|
||||||
final Card src = source;
|
final Card src = source;
|
||||||
final Ability ability = new Ability(src, "0") {
|
final Ability ability = new Ability(src, "0") {
|
||||||
|
|||||||
Reference in New Issue
Block a user