Class AdjacentDeathrattleSpell

All Implemented Interfaces:
Serializable, HasDesc<SpellDesc>

public final class AdjacentDeathrattleSpell extends AdjacentEffectSpell
Casts SpellArg.SPELL2 on the minions adjacent to the minion whose deathrattle is currently being processed.

Required for implementing an effect that processes like EntityReference.ADJACENT_MINIONS except from the point of view of a deathrattle, where the minion is typically in the graveyard.

For example, to implement "Deathrattle: Give adjacent minions Taunt.":

   "deathrattle": {
     "class": "custom.AdjacentDeathrattleSpell",
     "target": "SELF",
     "spell2": {
       "class": "AddAttributeSpell",
       "attribute": "TAUNT"
     }
   }
 
See Also: