mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-12-21 07:16:52 +01:00
- Vampire Nocturnus Avatar: ensure that its static ability only starts working when the game actually begins.
git-svn-id: http://svn.slightlymagic.net/forge/trunk@35812 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
parent
8bb327fff5
commit
b9842c3800
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user