[C21] fixed Rousing Refrain mana not staying until end of turn

This commit is contained in:
Evan Kranzler 2021-08-20 08:52:20 -04:00
parent ebe02c310a
commit e4f0a485a6
2 changed files with 4 additions and 4 deletions

View file

@ -327,7 +327,7 @@ public class ManaPool implements Serializable {
addMana(manaToAdd, game, source, false);
}
public void addMana(Mana manaToAdd, Game game, Ability source, boolean emptyOnTurnsEnd) {
public void addMana(Mana manaToAdd, Game game, Ability source, boolean dontLoseUntilEOT) {
if (manaToAdd != null) {
Mana mana = manaToAdd.copy();
if (!game.replaceEvent(new ManaEvent(EventType.ADD_MANA, source.getId(), source, playerId, mana))) {
@ -338,7 +338,7 @@ public class ManaPool implements Serializable {
source.getSourceObject(game),
conditionalMana.getManaProducerOriginalId() != null ? conditionalMana.getManaProducerOriginalId() : source.getOriginalId()
);
if (emptyOnTurnsEnd) {
if (dontLoseUntilEOT) {
item.setDuration(Duration.EndOfTurn);
}
this.manaItems.add(item);
@ -354,7 +354,7 @@ public class ManaPool implements Serializable {
source.getOriginalId(),
mana.getFlag()
);
if (emptyOnTurnsEnd) {
if (dontLoseUntilEOT) {
item.setDuration(Duration.EndOfTurn);
}
this.manaItems.add(item);