mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
- Vampire Nocturnus Avatar: ensure that its static ability only starts working when the game actually begins.
This commit is contained in:
@@ -24,6 +24,7 @@ import forge.card.MagicColor;
|
||||
import forge.game.CardTraitBase;
|
||||
import forge.game.Game;
|
||||
import forge.game.GameEntity;
|
||||
import forge.game.GameStage;
|
||||
import forge.game.ability.AbilityUtils;
|
||||
import forge.game.card.Card;
|
||||
import forge.game.card.CardCollection;
|
||||
@@ -579,6 +580,15 @@ public class StaticAbility extends CardTraitBase implements Comparable<StaticAbi
|
||||
}
|
||||
}
|
||||
|
||||
if (hasParam("GameStage")) {
|
||||
String[] stageDefs = TextUtil.split(getParam("GameStage"), ',');
|
||||
boolean isRelevantStage = false;
|
||||
for (String stage : stageDefs) {
|
||||
isRelevantStage |= (game.getAge() == GameStage.valueOf(stage));
|
||||
}
|
||||
return isRelevantStage;
|
||||
}
|
||||
|
||||
if (hasParam("Presence")) {
|
||||
if (hostCard.getCastFrom() == null || hostCard.getCastSA() == null)
|
||||
return false;
|
||||
|
||||
@@ -2,6 +2,6 @@ Name:Vampire Nocturnus Avatar
|
||||
ManaCost:no cost
|
||||
Types:Vanguard
|
||||
HandLifeModifier:-1/-2
|
||||
S:Mode$ Continuous | EffectZone$ Command | Affected$ Card.TopLibrary+YouCtrl | AffectedZone$ Library | MayLookAt$ Player | Description$ Play with the top card of your library revealed.
|
||||
S:Mode$ Continuous | EffectZone$ Command | GameStage$ Play | Affected$ Card.TopLibrary+YouCtrl | AffectedZone$ Library | MayLookAt$ Player | Description$ Play with the top card of your library revealed.
|
||||
S:Mode$ Continuous | EffectZone$ Command | Affected$ Creature.Black+YouCtrl | AddPower$ 2 | AddToughness$ 1 | TopCardOfLibraryIs$ Card.Black | Description$ As long as the top card of your library is black, black creatures you control get +2/+1.
|
||||
Oracle:Hand -1, life -2\nPlay with the top card of your library revealed.\nAs long as the top card of your library is black, black creatures you control get +2/+1.
|
||||
|
||||
Reference in New Issue
Block a user