mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00: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…
Reference in a new issue