mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Drain Power while loop logic fix
This commit is contained in:
parent
d83af8be91
commit
97606fc50d
1 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ class DrainPowerEffect extends OneShotEffect {
|
|||
List<Permanent> ignorePermanents = new ArrayList<>();
|
||||
TargetPermanent target = null;
|
||||
|
||||
do {
|
||||
while (true) {
|
||||
Map<Permanent, List<ActivatedManaAbilityImpl>> manaAbilitiesMap = new HashMap<>();
|
||||
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(filter, targetPlayer.getId(), game)) {
|
||||
if (!ignorePermanents.contains(permanent)) {
|
||||
|
@ -162,7 +162,7 @@ class DrainPowerEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
}
|
||||
} while (target != null && target.canChoose(targetPlayer.getId(), game));
|
||||
}
|
||||
|
||||
// 106.12. One card (Drain Power) causes one player to lose unspent mana and another to add “the mana lost this way.” (Note that these may be the same player.)
|
||||
// This empties the former player’s mana pool and causes the mana emptied this way to be put into the latter player’s mana pool. Which permanents, spells, and/or
|
||||
|
|
Loading…
Reference in a new issue