Fixed Govlin Arsonist not dealing damage.

This commit is contained in:
magenoxx 2011-08-10 18:14:19 +04:00
parent cc886a3c49
commit 2c755f8e6b

View file

@ -87,20 +87,18 @@ class GoblinArsonistEffect extends OneShotEffect<GoblinArsonistEffect> {
Player player = game.getPlayer(source.getControllerId()); Player player = game.getPlayer(source.getControllerId());
player.choose(Outcome.Damage, target, game); player.choose(Outcome.Damage, target, game);
Permanent arsonist = game.getPermanent(source.getSourceId());
if (arsonist != null) {
Permanent permanent = game.getPermanent(target.getFirstTarget()); Permanent permanent = game.getPermanent(target.getFirstTarget());
if (permanent != null) { if (permanent != null) {
permanent.damage(1, arsonist.getId(), game, true, false); permanent.damage(1, source.getSourceId(), game, true, false);
return true; return true;
} }
Player targetPlayer = game.getPlayer(target.getFirstTarget()); Player targetPlayer = game.getPlayer(target.getFirstTarget());
if (targetPlayer != null) { if (targetPlayer != null) {
targetPlayer.damage(1, arsonist.getId(), game, true, false); targetPlayer.damage(1, source.getSourceId(), game, true, false);
return true; return true;
} }
}
return false; return false;
} }