Custom spells that are used to implement game effects that are too complex for card JSON.
Class Summary Class Description AbholosSpellDestroys friendly minions. AbstractRepeatMinionsDestroyedSpellA base class for spells that have to repeat recasts based on whether or not minions have been destroyed. ActivateTriggeredEffectSpell AddActorEffectsToTargetActorSpellCopies the text written on the actor card pointed to by
AddEnchantmentToMinionCardSpellPuts the enchantment written in this spell into play as soon as the minion is summoned from the
SpellArg.SPELL2on the minions adjacent to the minion whose deathrattle is currently being processed.
AysaCloudsingerSpellChanges your current hero to the first card in the
BaulPocuseSpell BloodElfChampionSpellSwaps the
sourcesummoning minion's health with the
targets, splitting the health of the source among all the targets and gaining the sum of the targets' health.
source(or the player entity, when the source is a spell or not in play) the enchantment, "Whenever a minion whose card is the same as the chosen minion is summoned, double the newly summoned minion's stats."
BuffLeftmostMinionInHandSpellBuffs the leftmost minion in the player's hand. CalamityBeckonsSpellSummons all the minions from the player's deck. CastOnCardsInStorageSpell CastOnEntitiesInStorageSpell CastSpellCopySpellCasts a copy of the card played during the firing of a
CastSpellSpell CelestialConduitSpellDiscovers cards from
SpellUtils.getCards(GameContext, Player, Entity, Entity, SpellDesc)until their total cost is greater or equal to
ChangeSignatureSpell ChooseSignatureSpell ClearStorageSpellClears all entities stored by
CopyCardEnchantmentsSpellCopies enchantments written on the
SpellUtils.getCards(GameContext, Player, Entity, Entity, SpellDesc, int)cards and the
target(when specified) to the target specified in
CopyEnchantmentsSpellCopies enchantments from the
CopyLastRoastedCardSpell CopyLowestCostMinionSpellCopies the lowest cost
CardType.MINIONin the player's hand.
source(casting entity) of this spell into the
CreateAndTeachSpell CreateCardFromChoicesSpellCreates a card from a sequence of discovers. CreationSpellCreates a sideboard of
targetactor's damage to minions adjacent to the
DamageOppositeMinionsSpellForces a minion to deal its damage to the minions opposite of it. DestroyAllExceptOneAndMindControlSpellDestroys all minions except one. DestroyAndSummonInPlaceSpellFor each
target, destroy it.
DiluteSoulSpellDiscards a card. DiscoverClassSpellDiscovers a class card. DiscoverDiscardSpellA spell that has the same interpretation of arguments as
DiscardSpell, except the player chooses which cards to discard.
DoubleSummonSpellA dummy spell used for a simpler implementation of Khadgar's effect with a
DuelRandomSecondarySpell ElorthaNoShandraSpellGives a minion or card, "Deathrattle: Resummon this minion." Uses the card ID to do the resummoning. EnvironmentEntityListStores a list of entities in the environment, instead of on an attribute on an entity. ExoticGoodsSpellSource 3 cards from other classes (i.e., Source 3 times, each time, select from cards from other classes. FarseerNobundoSpellCreates a trigger that copies the
targetentity's text to
Race.TOTEMminions for the rest of the game.
FelfireDrakeSpell FightRandomAdjacentMinionSpellCauses the
EntityReference.TRIGGER_HOSTto fight a random minion adjacent to it.
FinalFeastSpell FormlessAgonyMissilesSpell GainStatsOfHighestCostMinionSpellBuffs the
targetwith the stats of the highest cost minion in the player's hand.
GetChooseOneChoicesSpell GuessCardSpellPrompts the player to guess which card started in the opponent's deck in order to receive it. HealAndBuffExcessAsDrainSpell HeroPowerToSpellSpellTurns a hero power into a spell card. JailMinionSpellDestroys the
targetminion, and gives the
sourcethe aftermath, "Resummon that minion."
KeepersPupilSpellPuts a random secret into play. LastMinionCardInDeckSpell ManaCrystalToMinionSpellSummon minions based on player's mana crystal count; deduct one mana crystal per minion summoned. MergeSpell MindControlOneTurnSpell PlayCardsRandomlySpellRetrieves all the cards generated by
SpellUtils.getCards(GameContext, Player, Entity, Entity, SpellDesc, int)and plays them randomly.
PlayLastCardsRandomlySpellReplays randomly the last
SpellArg.VALUEcards the caster played.
ProphetWaRanSpellShuffles 5/5 copies of all minions in the casting player's deck. PutIntoEggSpellGives the
SpellArg.SECONDARY_TARGETthe deathrattle, "Summon
target", and removes
targetfrom wherever it is.
PutMiniCopyInHandSpell Deprecated. RafaamThiefSpellGives the target minion, "Deathrattle: Shuffle this minion into the caster's deck." RecastIfMinionsDestroyedSpellRecasts the
SpellArg.SPELLif any minions were destroyed.
RecastMinionSpells Deprecated. RecastUntilMinionsDestroyedSpellRecasts until at least one minion is destroyed. ReceiveCardNextTurnSpellPuts
SpellArg.CARDinto the caster's hand at the start of the caster's next turn.
ReceiveCardsInStorageSpellReceives a copy of all the cards stored on
ReceiveOpponentsCastSpellsSpellReceives the spells the opponent cast from their hand their previous turn. RemoveTopUntilMinionAndSummonSpellRemoves cards from the top of the caster's deck until a minion is found. RepeatAllAftermathsSpellRepeats all other aftermaths the casting player has triggered as long as the source is in play. RepeatAllOtherBattlecriesSpellRetrieves a list of cards using
SpellUtils.getCards(GameContext, Player, Entity, Entity, SpellDesc, int)and plays their openers with this
sourceactor as the source.
RepeatLastAftermathsSpellRepeats the last
SpellArg.VALUEaftermaths triggered by owner of the
ResurrectFromEntityStorageSpellResurrects and clears the entities stored on the
SetRaceFromAttributeSpell ShuffleWithCardCostModifierSpellGenerates the cards retrieved by
SpellUtils.getCards(GameContext, Player, Entity, Entity, SpellDesc)rules, moves each card to the
Zones.SET_ASIDE_ZONE, casts the
SpellArg.SPELLsub-spell on each as the
target, and then moves the card to the
Zones.REMOVED_FROM_PLAYzone if they have not been moved out of set aside.
SoulscreamSpellDiscover a minion in your graveyard. SowDistrustSpellForces the leftmost and rightmost enemy minions to attack their neighbors. SpellToHeroPowerSpellCreates a skill from the specified spell. StoreEntitySpellStores the specified
SpellArg.TARGETinto a list keyed by the
sourceof the casting spell.
StoreRaceToAttributeSpell SummonFriendlyMinionsThatDiedSpellSummons all the friendly minions that died this turn. SummonMinionWithMostCopiesInDeckSpellSummons a minion from the player's deck with the most copies in the deck. SwapCardsInHandAndDeckSpellSwaps a card from the hand filtered using the first item in the
SpellArg.CARD_FILTERSwith a card in the deck filtered with the second filter in the card filters array.
SwapHpAndCostSpellSwaps the HP and the cost of the
SwapMinionWithDeckSpell SwapWithHandSpellSwaps a
targetminion with a random one in your hand.
TextifySpellPuts text from a random
SpellDesc.getFilteredCards(GameContext, Player, Entity)card onto the
targetcard into a card retrieved from
SpellUtils.getCards(GameContext, Player, Entity, Entity, SpellDesc), keeping important attributes like
TransformToAndBackSpell TriggerDistinctAftermathsInGraveyard TriggerSecretRevealSpell UpgradeHeroPowerSpellUpgrades the player's hero power as specified in its
VileIntentSpellBuffs all minions in your hand and deck that have a copy in the graveyard. VohkrovanisSpellReplaces the
SpellArg.TARGET_PLAYER's deck with 30 random cards.
VolatileWisdomSpellBoth players swap their leftmost and rightmost cards with their opponent. WeaponOnEquipEffectSpell WeaponOnUnEquipEffectSpell YaganLifetakerSpellDrains damage from the
targetand randomly buffs among the