mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
fixed DamageXTargetEffect
This commit is contained in:
parent
06ed6cbd2a
commit
ccea6d06d7
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ public class DamageXTargetEffect extends OneShotEffect<DamageXTargetEffect> {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
int amount = source.getCosts().getVariableCosts().get(0).getAmount();
|
||||
int amount = source.getManaCostsToPay().getVariableCosts().get(0).getAmount();
|
||||
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
||||
if (permanent != null) {
|
||||
permanent.damage(amount, source.getId(), game, true, false);
|
||||
|
|
Loading…
Reference in a new issue