Fixed bug of DamageTargetEffect.

This commit is contained in:
LevelX2 2013-06-05 22:36:30 +02:00
parent 332697282d
commit 211af5c9e3

View file

@ -123,7 +123,7 @@ public class DamageTargetEffect extends OneShotEffect<DamageTargetEffect> {
if (permanent != null) {
permanent.damage(amount.calculate(game, source), source.getSourceId(), game, preventable, false);
} else {
Player player = game.getPlayer(targetPointer.getFirst(game, source));
Player player = game.getPlayer(targetId);
if (player != null) {
player.damage(amount.calculate(game, source), source.getSourceId(), game, false, preventable);
}