mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
fix DamageMultiEffect that it pass incorrect sourceId
This commit is contained in:
parent
738b198922
commit
8660beca89
1 changed files with 2 additions and 2 deletions
|
@ -74,12 +74,12 @@ public class DamageMultiEffect extends OneShotEffect<DamageMultiEffect> {
|
||||||
for (UUID target: multiTarget.getTargets()) {
|
for (UUID target: multiTarget.getTargets()) {
|
||||||
Permanent permanent = game.getPermanent(target);
|
Permanent permanent = game.getPermanent(target);
|
||||||
if (permanent != null) {
|
if (permanent != null) {
|
||||||
permanent.damage(multiTarget.getTargetAmount(target), source.getId(), game, true, false);
|
permanent.damage(multiTarget.getTargetAmount(target), source.getSourceId(), game, true, false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Player player = game.getPlayer(target);
|
Player player = game.getPlayer(target);
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
player.damage(multiTarget.getTargetAmount(target), source.getId(), game, false, true);
|
player.damage(multiTarget.getTargetAmount(target), source.getSourceId(), game, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue