Class ReservoirSpell
java.lang.Object
net.demilich.metastone.game.spells.Spell
net.demilich.metastone.game.spells.ConditionalEffectSpell
net.demilich.metastone.game.spells.ReservoirSpell
- All Implemented Interfaces:
Serializable
,HasDesc<SpellDesc>
Shorthand for a
ConditionalEffectSpell
that only plays the conditional (second) spell if the caster's deck
has a number of cards greater than or equal to the SpellArg.VALUE
.
If a SpellArg.SECONDARY_VALUE
is specified, this is the upper bound on the number of cards.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isConditionFulfilled
(GameContext context, Player player, SpellDesc desc, Entity source, Entity target) Methods inherited from class net.demilich.metastone.game.spells.ConditionalEffectSpell
onCast
Methods inherited from class net.demilich.metastone.game.spells.Spell
cast, castForPlayer, checkArguments, getDesc, isNativeStateful, setDesc, toString
-
Constructor Details
-
ReservoirSpell
public ReservoirSpell()
-
-
Method Details
-
isConditionFulfilled
protected boolean isConditionFulfilled(GameContext context, Player player, SpellDesc desc, Entity source, Entity target) - Overrides:
isConditionFulfilled
in classConditionalEffectSpell
-