ashnod_the_uncaring.txt and support

This commit is contained in:
Northmoc
2022-11-06 15:47:11 -05:00
parent f8af2606a9
commit 6ce263a4e9
2 changed files with 16 additions and 0 deletions

View File

@@ -402,6 +402,12 @@ public abstract class Trigger extends TriggerReplacementBase {
if (found) { if (found) {
return false; return false;
} }
} else if ("Sacrificed".equals(condition)) {
final SpellAbility trigSA = (SpellAbility) runParams.get(AbilityKey.CastSA);
if (trigSA != null &&
(trigSA.getPaidList("Sacrificed") == null || trigSA.getPaidList("Sacrificed").isEmpty())) {
return false;
}
} else if ("AttackedPlayerWithMostLife".equals(condition)) { } else if ("AttackedPlayerWithMostLife".equals(condition)) {
GameEntity attacked = (GameEntity) runParams.get(AbilityKey.Attacked); GameEntity attacked = (GameEntity) runParams.get(AbilityKey.Attacked);
if (attacked == null) { if (attacked == null) {

View File

@@ -0,0 +1,10 @@
Name:Ashnod the Uncaring
ManaCost:2 U B R
Types:Legendary Creature Human Artificer
PT:1/4
K:Deathtouch
T:Mode$ AbilityCast | ValidCard$ Artifact.inZoneBattlefield,Creature.inZoneBattlefield | ValidSA$ SpellAbility.nonManaAbility | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Condition$ Sacrificed | Execute$ TrigCopy | OptionalDecider$ You | TriggerDescription$ Whenever you activate an ability of an artifact or creature that isn't a mana ability, if one or more permanents were sacrificed to activate it, you may copy that ability. You may choose new targets for the copy. (Sacrificing an artifact for mana to activate an ability doesn't count.)
SVar:TrigCopy:DB$ CopySpellAbility | Defined$ TriggeredSpellAbility | MayChooseTarget$ True
DeckNeeds:Ability$Sacrifice
DeckHints:Type$Artifact
Oracle:Deathtouch\nWhenever you activate an ability of an artifact or creature that isn't a mana ability, if one or more permanents were sacrificed to activate it, you may copy that ability. You may choose new targets for the copy. (Sacrificing an artifact for mana to activate an ability doesn't count.)