mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +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.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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue