mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
C19: Add Archfiend of Spite
This commit is contained in:
@@ -119,8 +119,9 @@ public class SacrificeEffect extends SpellAbilityEffect {
|
|||||||
|
|
||||||
if (sa.hasParam("Random")) {
|
if (sa.hasParam("Random")) {
|
||||||
choosenToSacrifice = Aggregates.random(validTargets, Math.min(amount, validTargets.size()), new CardCollection());
|
choosenToSacrifice = Aggregates.random(validTargets, Math.min(amount, validTargets.size()), new CardCollection());
|
||||||
}
|
} else if (sa.hasParam("OptionalSacrifice") && !p.getController().confirmAction(sa, null, "Do you want to sacrifice?")) {
|
||||||
else {
|
choosenToSacrifice = CardCollection.EMPTY;
|
||||||
|
} else {
|
||||||
boolean isOptional = sa.hasParam("Optional");
|
boolean isOptional = sa.hasParam("Optional");
|
||||||
boolean isStrict = sa.hasParam("StrictAmount");
|
boolean isStrict = sa.hasParam("StrictAmount");
|
||||||
int minTargets = isOptional ? 0 : amount;
|
int minTargets = isOptional ? 0 : amount;
|
||||||
|
|||||||
12
forge-gui/res/cardsfolder/upcoming/archfiend_of_spite.txt
Normal file
12
forge-gui/res/cardsfolder/upcoming/archfiend_of_spite.txt
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Name:Archfiend of Spite
|
||||||
|
ManaCost:5 B B
|
||||||
|
Types:Creature Demon
|
||||||
|
PT:6/6
|
||||||
|
K:Flying
|
||||||
|
T:Mode$ DamageDone | ValidSource$ Card.OppCtrl | ValidTarget$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigSacrifice | TriggerDescription$ Whenever a source an opponent controls deals damage to CARDNAME, that source’s controller loses that much life unless they sacrifice that many permanents.
|
||||||
|
SVar:TrigSacrifice:DB$ Sacrifice | Defined$ TriggeredSourceController | SacValid$ Permanent | Amount$ X | References$ X | StrictAmount$ True | OptionalSacrifice$ True | RememberSacrificed$ True | SubAbility$ DBCurseDamage
|
||||||
|
SVar:DBCurseDamage:DB$ DealDamage | Defined$ TriggeredSourceController | NumDmg$ X | References$ X | ConditionDefined$ Remembered | ConditionPresent$ Card | ConditionCompare$ EQ0 | SubAbility$ DBCleanup
|
||||||
|
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
|
||||||
|
SVar:X:TriggerCount$DamageAmount
|
||||||
|
K:Madness:3 B B
|
||||||
|
Oracle:Flying\nWhenever a source an opponent controls deals damage to Archfiend of Spite, that source’s controller loses that much life unless they sacrifice that many permanents.\nMadness {3}{B}{B} (If you discard this card, discard it into exile. When you do, cast it for its madness cost or put it into your graveyard.)
|
||||||
Reference in New Issue
Block a user