mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
[ALA] Fixed Flameblast Dragon
This commit is contained in:
parent
b8d88bab01
commit
01c5fc9812
1 changed files with 2 additions and 2 deletions
|
@ -93,14 +93,14 @@ class FlameblastDragonEffect extends OneShotEffect<FlameblastDragonEffect> {
|
|||
cost.clearPaid();
|
||||
if (cost.pay(game, source.getId(), source.getControllerId(), false)) {
|
||||
int costX = ((VariableCost) cost.getVariableCosts().get(0)).getAmount();
|
||||
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
||||
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
||||
if (permanent != null) {
|
||||
permanent.damage(costX, source.getId(), game, true, false);
|
||||
return true;
|
||||
}
|
||||
Player targetPlayer = game.getPlayer(source.getFirstTarget());
|
||||
if (targetPlayer != null) {
|
||||
player.damage(costX, source.getId(), game, true, false);
|
||||
targetPlayer.damage(costX, source.getId(), game, true, false);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue