Class AdjacentDeathrattleSpell
java.lang.Object
net.demilich.metastone.game.spells.Spell
net.demilich.metastone.game.spells.RelativeToTargetEffectSpell
net.demilich.metastone.game.spells.AdjacentEffectSpell
net.demilich.metastone.game.spells.custom.AdjacentDeathrattleSpell
- All Implemented Interfaces:
Serializable,HasDesc<SpellDesc>
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:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.demilich.metastone.game.spells.AdjacentEffectSpell
create, createMethods inherited from class net.demilich.metastone.game.spells.RelativeToTargetEffectSpell
onCastMethods inherited from class net.demilich.metastone.game.spells.Spell
cast, castForPlayer, checkArguments, getDesc, isNativeStateful, setDesc, toString
-
Constructor Details
-
AdjacentDeathrattleSpell
public AdjacentDeathrattleSpell()
-
-
Method Details
-
getActors
- Overrides:
getActorsin classAdjacentEffectSpell
-