Class AfterSpellCastedTrigger

All Implemented Interfaces:
Serializable, Cloneable, HasDesc<EventTriggerDesc>
Direct Known Subclasses:
AfterDamagingSpellCastedTrigger

public class AfterSpellCastedTrigger extends AbstractCardTrigger
Fires after the EventTriggerArg.TARGET_PLAYER casts a spell.

Permits all the constraints on the card being cast from AbstractCardTrigger.

The EntityReference.EVENT_TARGET will be set to the selected target of the spell, if it takes a target. The EntityReference.EVENT_SOURCE is the card that was played. This is different than other triggers.

If this trigger is on the card that it intends to target, it will be in the graveyard and therefore any enchantment attached to it will not be active. To do something when the spell card this trigger is written on is cast, use SpellCastedTrigger.

See Also:
  • Constructor Details

    • AfterSpellCastedTrigger

      public AfterSpellCastedTrigger(EventTriggerDesc desc)
  • Method Details