mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08: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();
|
cost.clearPaid();
|
||||||
if (cost.pay(game, source.getId(), source.getControllerId(), false)) {
|
if (cost.pay(game, source.getId(), source.getControllerId(), false)) {
|
||||||
int costX = ((VariableCost) cost.getVariableCosts().get(0)).getAmount();
|
int costX = ((VariableCost) cost.getVariableCosts().get(0)).getAmount();
|
||||||
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
||||||
if (permanent != null) {
|
if (permanent != null) {
|
||||||
permanent.damage(costX, source.getId(), game, true, false);
|
permanent.damage(costX, source.getId(), game, true, false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Player targetPlayer = game.getPlayer(source.getFirstTarget());
|
Player targetPlayer = game.getPlayer(source.getFirstTarget());
|
||||||
if (targetPlayer != null) {
|
if (targetPlayer != null) {
|
||||||
player.damage(costX, source.getId(), game, true, false);
|
targetPlayer.damage(costX, source.getId(), game, true, false);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue