fix DamageMultiEffect that it pass incorrect sourceId

This commit is contained in:
Li REN 2013-07-18 15:59:17 -04:00
parent 738b198922
commit 8660beca89

View file

@ -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);
} }
} }
} }