fixed Myr Battlesphere not damaging its defender

This commit is contained in:
Evan Kranzler 2018-04-26 12:35:18 -04:00
parent 90e9a21aa5
commit 275a70b217

View file

@ -150,7 +150,7 @@ class MyrBattlesphereEffect extends OneShotEffect {
if (controller != null) { if (controller != null) {
Permanent myr = game.getPermanentOrLKIBattlefield(source.getSourceId()); Permanent myr = game.getPermanentOrLKIBattlefield(source.getSourceId());
int tappedAmount = 0; int tappedAmount = 0;
TargetPermanent target = new TargetPermanent(0, 1, filter, false); TargetPermanent target = new TargetPermanent(0, 1, filter, true);
while (true && controller.canRespond()) { while (true && controller.canRespond()) {
target.clearChosen(); target.clearChosen();
if (target.canChoose(source.getControllerId(), game)) { if (target.canChoose(source.getControllerId(), game)) {
@ -175,7 +175,7 @@ class MyrBattlesphereEffect extends OneShotEffect {
// boost effect // boost effect
game.addEffect(new BoostSourceEffect(tappedAmount, 0, Duration.EndOfTurn), source); game.addEffect(new BoostSourceEffect(tappedAmount, 0, Duration.EndOfTurn), source);
// damage to defender // damage to defender
return game.damagePlayerOrPlaneswalker(source.getFirstTarget(), tappedAmount, myr.getId(), game, false, true) > 0; return game.damagePlayerOrPlaneswalker(targetPointer.getFirst(game, source), tappedAmount, myr.getId(), game, false, true) > 0;
} }
return true; return true;
} }