Allow abomination to mimic play abilitites.

This commit is contained in:
Greyson Parrelli
2026-07-25 07:58:02 -04:00
parent a1d57fe1dd
commit 3a7f92b3cb
3 changed files with 48 additions and 3 deletions
+29
View File
@@ -860,6 +860,35 @@ func TestChimeraSummonFromDiscard(t *testing.T) {
}
}
// Abomination mimics a discard pet's ability, firing its Play effect at once.
func TestAbominationMimicsPlayAbility(t *testing.T) {
g, _, _ := unicornGame(t)
// The tier 1 discard pile holds a Barghest (Play → Spook the enemy pet).
g.Discards = map[int][]Card{1: {g.unicornPet(t, "Barghest")}}
res := forceBattle(t, g,
[]Card{g.unicornPet(t, "Abomination"), g.pet("Body", 4)},
[]Card{g.pet("Tank", 10)},
)
if len(eventsOfType(res, "ailment")) == 0 {
t.Fatal("Abomination should immediately fire the mimicked Barghest Play ability")
}
}
// Abomination's mimicked non-Play ability fires on its natural trigger later.
func TestAbominationMimicsFaintAbility(t *testing.T) {
g, _, _ := unicornGame(t)
// Discard holds an Ant (Faint → apple on deck); Abomination gains it and the
// apple appears when Abomination faints.
g.Discards = map[int][]Card{1: {g.tier1(t, "Ant")}}
res := forceBattle(t, g,
[]Card{g.unicornPet(t, "Abomination")},
[]Card{g.pet("Killer", 12)},
)
if seat0Summons(res, "Apple") == 0 {
t.Fatal("Abomination should gain the Ant's Faint ability and drop an apple on faint")
}
}
// Pixiu spends Mana to summon the top of the tier 6 shop deck.
func TestPixiuSummonFromTierDeck(t *testing.T) {
g, _, _ := unicornGame(t)