Class PreGameStartTrigger
java.lang.Object
net.demilich.metastone.game.logic.CustomCloneable
net.demilich.metastone.game.spells.trigger.EventTrigger
net.demilich.metastone.game.spells.trigger.PreGameStartTrigger
- All Implemented Interfaces:
Serializable,Cloneable,HasDesc<EventTriggerDesc>
Fires before the game starts but after mulligans. Appropriate for putting passives into play.
For example, to implement the passive "Passive: Your starting skill is Summon a 1/1 Beast":
"gameTriggers": [
{
"eventTrigger": {
"class": "PreGameStartTrigger",
"targetPlayer": "SELF"
},
"spell": {
"class": "MetaSpell",
"spells": [
{
"class": "RevealCardSpell",
"target": "SELF"
},
{
"class": "ChangeHeroPowerSpell",
"target": "FRIENDLY_PLAYER",
"card": "hero_power_dire_beast"
},
{
"class": "RemoveCardSpell",
"target": "SELF"
}
]
}
}
]
Observe the card is revealed, followed by the actual effect, followed by removing itself.
To ensure the card isn't mulliganed, use Attribute.NEVER_MULLIGANS.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EventTriggerDesccreate(TargetPlayer targetPlayer) protected 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
-
PreGameStartTrigger
public PreGameStartTrigger() -
PreGameStartTrigger
-
-
Method Details
-
create
-
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- Specified by:
innerQueuesin classEventTrigger- Returns:
-
interestedIn
public com.hiddenswitch.spellsource.rpc.Spellsource.GameEventTypeMessage.GameEventType interestedIn()- Specified by:
interestedInin classEventTrigger
-