mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed Govlin Arsonist not dealing damage.
This commit is contained in:
parent
cc886a3c49
commit
2c755f8e6b
1 changed files with 11 additions and 13 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue