Drain Power fix for Rhystic Cave (#4894)

This commit is contained in:
L_J 2018-06-08 18:41:06 +00:00 committed by GitHub
parent 3e180267ed
commit d03fd6eea3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,6 +78,7 @@ class DrainPowerEffect extends OneShotEffect {
TargetPermanent target = null;
while (true) {
targetPlayer.setPayManaMode(true);
manaAbilitiesMap.clear();
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(filter, targetPlayer.getId(), game)) {
if (!ignorePermanents.contains(permanent)) {
@ -138,6 +139,7 @@ class DrainPowerEffect extends OneShotEffect {
}
}
}
targetPlayer.setPayManaMode(false);
// 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 players mana pool and causes the mana emptied this way to be put into the latter players mana pool. Which permanents, spells, and/or