mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
* Cabal Ritual, Gemstone Caverns, River of Tears - Fixed a problem that the tap for mana event was sent twice for theses lands (fixes #4288).
This commit is contained in:
parent
2197fe2bcd
commit
d85637336e
2 changed files with 14 additions and 11 deletions
|
|
@ -79,8 +79,10 @@ public class ConditionalManaEffect extends ManaEffect {
|
|||
otherwiseEffect.setTargetPointer(this.targetPointer);
|
||||
}
|
||||
Mana mana = getMana(game, source);
|
||||
|
||||
if (mana != null && mana.getAny() > 0) {
|
||||
if (mana == null) {
|
||||
return false;
|
||||
}
|
||||
if (mana.getAny() > 0) {
|
||||
int amount = mana.getAny();
|
||||
|
||||
ChoiceColor choice = new ChoiceColor(true);
|
||||
|
|
@ -92,13 +94,14 @@ public class ConditionalManaEffect extends ManaEffect {
|
|||
|
||||
createdMana = choice.getMana(amount);
|
||||
}
|
||||
if (createdMana == null) {
|
||||
return false;
|
||||
}
|
||||
mana = createdMana;
|
||||
}
|
||||
|
||||
if (mana != null) {
|
||||
// because the mana type is now choosen, fire the event with the mana information
|
||||
checkToFirePossibleEvents(mana, game, source);
|
||||
controller.getManaPool().addMana(mana, game, source);
|
||||
}
|
||||
controller.getManaPool().addMana(mana, game, source);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue