mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +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;
|
||||
|
||||
Reference in New Issue
Block a user