This commit is contained in:
omegablast2002@yahoo.com
2011-04-17 20:21:46 +00:00
parent 50c5c70479
commit 01a229d1b6

View File

@@ -120,8 +120,10 @@ LifeorManaCost::LifeorManaCost(TargetChooser *_tc,string manaType) :
ManaCost * newCost = ManaCost::parseManaCost(buildType);
if(_target->controller()->getManaPool()->canAfford(newCost) || _target->controller()->life > 1)
{
SAFE_DELETE(newCost);
return 1;
}
SAFE_DELETE(newCost);
return 0;
}