mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
fixed Ram Through not dealing damage from the correct source
This commit is contained in:
parent
fd86790308
commit
b92eb1fdcb
1 changed files with 2 additions and 2 deletions
|
|
@ -92,10 +92,10 @@ class RamThroughEffect extends OneShotEffect {
|
||||||
lethal = Math.min(lethal, 1);
|
lethal = Math.min(lethal, 1);
|
||||||
}
|
}
|
||||||
lethal = Math.min(lethal, power);
|
lethal = Math.min(lethal, power);
|
||||||
anotherPermanent.damage(lethal, source.getSourceId(), game);
|
anotherPermanent.damage(lethal, myPermanent.getId(), game);
|
||||||
Player player = game.getPlayer(anotherPermanent.getControllerId());
|
Player player = game.getPlayer(anotherPermanent.getControllerId());
|
||||||
if (player != null && lethal < power) {
|
if (player != null && lethal < power) {
|
||||||
player.damage(power - lethal, source.getSourceId(), game);
|
player.damage(power - lethal, myPermanent.getId(), game);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue