Class AdjacentEffectSpell

All Implemented Interfaces:
Serializable, HasDesc<SpellDesc>
Direct Known Subclasses:
AdjacentDeathrattleSpell

public class AdjacentEffectSpell extends RelativeToTargetEffectSpell
Casts SpellArg.SPELL1 on the target minion, and SpellArg.SPELL2 on the minions adjacent to the target.

Used to implement text like, "Also damages the minions next to whomever this attacks":

   "trigger": {
     "eventTrigger": {
       "class": "AfterPhysicalAttackTrigger",
       "hostTargetType": "IGNORE_OTHER_SOURCES",
       "targetEntityType": "MINION"
     },
     "spell": {
       "class": "AdjacentEffectSpell",
       "target": "EVENT_TARGET",
       "spell2": {
         "class": "DamageSpell",
         "value": {
           "class": "AttributeValueProvider",
           "target": "SELF",
           "attribute": "ATTACK"
         }
       }
     }
   }
 
Observe that "damaging next to" is implemented by querying this minion's attack and dealing damage to adjacent minions like a damage spell.
See Also: