mirror of
https://github.com/correl/mage.git
synced 2025-03-16 01:06:34 -09:00
fixed Myr Battlesphere not damaging its defender
This commit is contained in:
parent
90e9a21aa5
commit
275a70b217
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue