Changes to first trigger

This commit is contained in:
Zzooouhh 2017-12-26 17:21:13 +01:00 committed by GitHub
parent 8538e6d157
commit 0ec629d6e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);