mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
Changes to first trigger
This commit is contained in:
parent
8538e6d157
commit
0ec629d6e5
1 changed files with 3 additions and 2 deletions
|
@ -200,10 +200,11 @@ class BaronVonCountMoveDoomCounterEffect extends OneShotEffect {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Integer doomNumber = (Integer) game.getState().getValue(mageObject.getId() + "_doom");
|
Integer doomNumber = (Integer) game.getState().getValue(mageObject.getId() + "_doom");
|
||||||
if (doomNumber <= 1) {
|
if (doomNumber == 1) {
|
||||||
// not completely sure if counter should be moving here or not (relevant in case the second trigger gets countered)
|
// not completely sure if counter should be moving here or not (relevant in case the second trigger gets countered)
|
||||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.CUSTOM_EVENT, source.getSourceId(), source.getSourceId(), controller.getId(), "DoomCounterReset", 1));
|
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.CUSTOM_EVENT, source.getSourceId(), source.getSourceId(), controller.getId(), "DoomCounterReset", 1));
|
||||||
} else {
|
}
|
||||||
|
if (doomNumber > 0) {
|
||||||
doomNumber--;
|
doomNumber--;
|
||||||
game.getState().setValue(mageObject.getId() + "_doom", doomNumber);
|
game.getState().setValue(mageObject.getId() + "_doom", doomNumber);
|
||||||
((Permanent) mageObject).addInfo("doom counter", CardUtil.addToolTipMarkTags("Doom counter at: " + doomNumber), game);
|
((Permanent) mageObject).addInfo("doom counter", CardUtil.addToolTipMarkTags("Doom counter at: " + doomNumber), game);
|
||||||
|
|
Loading…
Reference in a new issue