forked from External/mage
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…
Add table
Add a link
Reference in a new issue