fix unused variable error

This commit is contained in:
Anthony Calosa
2016-06-14 20:50:31 +08:00
parent b33ae0c92f
commit 149af25d22

View File

@@ -1387,7 +1387,7 @@ int MTGAttackCostRule::reactToClick(MTGCardInstance * card)
ManaCost * attackcost = NEW ManaCost(ManaCost::parseManaCost("{0}",NULL,NULL));
attackcost->add(0,card->attackCostBackup);
ManaCost * playerMana = player->getManaPool();
player->getManaPool()->pay(attackcost);
playerMana->pay(attackcost);
card->attackCost = 0;
return 1;
}