Class AbstractRepeatMinionsDestroyedSpell

java.lang.Object
net.demilich.metastone.game.spells.Spell
net.demilich.metastone.game.spells.RecastWhileSpell
net.demilich.metastone.game.spells.custom.AbstractRepeatMinionsDestroyedSpell
All Implemented Interfaces:
Serializable, HasDesc<SpellDesc>
Direct Known Subclasses:
RecastIfMinionsDestroyedSpell, RecastUntilMinionsDestroyedSpell

public class AbstractRepeatMinionsDestroyedSpell extends RecastWhileSpell
A base class for spells that have to repeat recasts based on whether or not minions have been destroyed.
See Also:
  • Field Details

    • minionsDestroyed

      protected int minionsDestroyed
  • Constructor Details

    • AbstractRepeatMinionsDestroyedSpell

      public AbstractRepeatMinionsDestroyedSpell()
  • Method Details

    • isNativeStateful

      protected boolean isNativeStateful()
      Description copied from class: Spell
      Indicates this instance uses Java field memory to maintain state instead of GameContext memory like the environment or entities.
      Overrides:
      isNativeStateful in class Spell
      Returns:
    • afterCast

      protected void afterCast(GameContext context, SpellDesc desc)
      Overrides:
      afterCast in class RecastWhileSpell