Class AfterSpellCastedTrigger
java.lang.Object
net.demilich.metastone.game.logic.CustomCloneable
net.demilich.metastone.game.spells.trigger.EventTrigger
net.demilich.metastone.game.spells.trigger.AbstractCardTrigger
net.demilich.metastone.game.spells.trigger.AfterSpellCastedTrigger
- All Implemented Interfaces:
Serializable,Cloneable,HasDesc<EventTriggerDesc>
- Direct Known Subclasses:
AfterDamagingSpellCastedTrigger
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleaninnerQueues(GameEvent event, Enchantment enchantment, Entity host) When an event this trigger isEventTrigger.interestedIn()occurs, this test indicates whether or not the trigger should enter the queue of effects that should be evaluated.com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventTypeMethods inherited from class net.demilich.metastone.game.spells.trigger.EventTrigger
clone, fires, getDesc, hostConditionMet, queues, setDesc, toString
-
Constructor Details
-
AfterSpellCastedTrigger
-
-
Method Details
-
innerQueues
Description copied from class:EventTriggerWhen an event this trigger isEventTrigger.interestedIn()occurs, this test indicates whether or not the trigger should enter the queue of effects that should be evaluated. This is distinct from whether or not- Overrides:
innerQueuesin classAbstractCardTrigger- Returns:
-
interestedIn
public com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType interestedIn()- Specified by:
interestedInin classEventTrigger
-