mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Added a corrected Ib Halfheart, Goblin Tactician. It now carries the trigger, etc.
This commit is contained in:
@@ -4,13 +4,12 @@ Types:Legendary Creature Goblin Advisor
|
||||
Text:no text
|
||||
PT:3/2
|
||||
A:AB$ Token | Cost$ Sac<2/Mountain> | TokenAmount$ 2 | TokenPower$ 1 | TokenName$ Goblin | TokenToughness$ 1 | TokenColors$ Red | TokenTypes$ Creature,Goblin | TokenOwner$ You
|
||||
S:Mode$ Continuous | Affected$ Goblin.YouCtrl+Other | AddTrigger$ HalfHeartTrigGetsBlocked | AddSVar$ HalfHeartTrigSacrifice & HalfHeartDBDamage & HalfHeartGoblinX | Description$ Whenever another Goblin you control becomes blocked, sacrifice it. If you do, it deals 4 damage to each creature blocking it. Sacrifice two Mountains: Put two 1/1 red Goblin creature tokens onto the battlefield.
|
||||
SVar:HalfHeartTrigGetsBlocked:Mode$ Blocks | ValidCard$ Creature.YouDontCtrl | ValidBlocked$ Card.Self | Execute$ HalfHeartTrigSacrifice | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME becomes blocked, sacrifice it. If you do, it deals 4 damage to each creature blocking it.
|
||||
SVar:HalfHeartTrigSacrifice:AB$ Sacrifice | Cost$ 0 | SacValid$ Card.Self | RememberSacrificed$ True | ConditionCheckSVar$ HalfHeartGoblinX | ConditionSVarCompare$ EQ0 | SubAbility$ HalfHeartDBDamage
|
||||
SVar:HalfHeartDBDamage:DB$ DealDamage | DamageSource$ TriggeredAttacker | NumDmg$ 4 | Defined$ TriggeredBlocker | ConditionCheckSVar$ HalfHeartGoblinX | ConditionSVarCompare$ EQ1
|
||||
SVar:HalfHeartGoblinX:Remembered$Valid Card.Self
|
||||
T:Mode$ Blocks | ValidCard$ Creature.YouDontCtrl | ValidBlocked$ Goblin.YouCtrl+Other | Execute$ HalfHeartTrigSacrifice | TriggerZones$ Battlefield | TriggerDescription$ Whenever another Goblin you control becomes blocked, sacrifice it. If you do, it deals 4 damage to each creature blocking it.
|
||||
SVar:HalfHeartTrigSacrifice:AB$ Sacrifice | Cost$ 0 | SacValid$ TriggeredAttacker | RememberSacrificed$ True | SubAbility$ HalfHeartDBDamage
|
||||
SVar:HalfHeartDBDamage:DB$ DealDamage | DamageSource$ TriggeredAttacker | NumDmg$ 4 | Defined$ TriggeredBlocker | ConditionCheckSVar$ GoblinX | ConditionSVarCompare$ EQ1
|
||||
T:Mode$ Phase | Phase$ EndCombat | ValidPlayer$ You | Execute$ DBCleanup | TriggerZones$ Battlefield | Static$ True | Secondary$ True | TriggerDescription$ Clear Remembered List
|
||||
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||
SVar:GoblinX:TriggeredAttacker$Valid Card.IsRemembered
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/ib_halfheart_goblin_tactician.jpg
|
||||
Oracle:Whenever another Goblin you control becomes blocked, sacrifice it. If you do, it deals 4 damage to each creature blocking it.\nSacrifice two Mountains: Put two 1/1 red Goblin creature tokens onto the battlefield.
|
||||
SetInfo:TSP|Rare|http://magiccards.info/scans/en/ts/163.jpg
|
||||
End
|
||||
@@ -437,6 +437,7 @@ public class AbilityFactorySacrifice {
|
||||
}
|
||||
|
||||
String valid = params.get("SacValid");
|
||||
System.out.println("Valid = " + valid);
|
||||
if (valid == null) {
|
||||
valid = "Self";
|
||||
}
|
||||
@@ -450,9 +451,6 @@ public class AbilityFactorySacrifice {
|
||||
|
||||
final boolean destroy = params.containsKey("Destroy");
|
||||
final boolean remSacrificed = params.containsKey("RememberSacrificed");
|
||||
if (remSacrificed) {
|
||||
card.clearRemembered();
|
||||
}
|
||||
|
||||
if (valid.equals("Self")) {
|
||||
if (AllZone.getZoneOf(card).is(Constant.Zone.Battlefield)) {
|
||||
@@ -471,7 +469,7 @@ public class AbilityFactorySacrifice {
|
||||
card.addRemembered(toSac);
|
||||
}
|
||||
}
|
||||
} else if (valid.equals("TriggeredCard")) {
|
||||
} else if (valid.equals("TriggeredCard")) {
|
||||
final Card equipee = (Card) sa.getTriggeringObject("Card");
|
||||
if (tgts.contains(card.getController()) && AllZoneUtil.isCardInPlay(equipee)) {
|
||||
Singletons.getModel().getGameAction().sacrifice(equipee);
|
||||
@@ -479,6 +477,14 @@ public class AbilityFactorySacrifice {
|
||||
card.addRemembered(equipee);
|
||||
}
|
||||
}
|
||||
} else if (valid.equals("TriggeredAttacker")) {
|
||||
final Card toSac = (Card) sa.getTriggeringObject("Attacker");
|
||||
if (AllZone.getZoneOf(card).is(Constant.Zone.Battlefield) && AllZoneUtil.isCardInPlay(toSac)) {
|
||||
Singletons.getModel().getGameAction().sacrifice(toSac);
|
||||
if (remSacrificed) {
|
||||
card.addRemembered(toSac);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
CardList sacList = null;
|
||||
for (final Player p : tgts) {
|
||||
|
||||
Reference in New Issue
Block a user