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.choose(Outcome.Damage, target, game);
Permanent arsonist = game.getPermanent(source.getSourceId());
if (arsonist != null) {
Permanent permanent = game.getPermanent(target.getFirstTarget());
if (permanent != null) {
permanent.damage(1, arsonist.getId(), game, true, false);
return true;
}
Permanent permanent = game.getPermanent(target.getFirstTarget());
if (permanent != null) {
permanent.damage(1, source.getSourceId(), game, true, false);
return true;
}
Player targetPlayer = game.getPlayer(target.getFirstTarget());
if (targetPlayer != null) {
targetPlayer.damage(1, source.getSourceId(), game, true, false);
return true;
}
Player targetPlayer = game.getPlayer(target.getFirstTarget());
if (targetPlayer != null) {
targetPlayer.damage(1, arsonist.getId(), game, true, false);
return true;
}
}
return false;
}