you can't pay life which you do not have as life payments.
This commit is contained in:
@@ -74,6 +74,16 @@ LifeCost::LifeCost(TargetChooser *_tc) :
|
||||
{
|
||||
}
|
||||
|
||||
int LifeCost::canPay()
|
||||
{
|
||||
MTGCardInstance * _target = (MTGCardInstance *) target;
|
||||
if(_target->controller()->life <= 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
int LifeCost::doPay()
|
||||
{
|
||||
if (!target)
|
||||
@@ -101,6 +111,16 @@ LifeorManaCost::LifeorManaCost(TargetChooser *_tc,string manaType) :
|
||||
{
|
||||
}
|
||||
|
||||
int LifeorManaCost::canPay()
|
||||
{
|
||||
MTGCardInstance * _target = (MTGCardInstance *) target;
|
||||
if(_target->controller()->life <= 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
int LifeorManaCost::doPay()
|
||||
{
|
||||
if (!target)
|
||||
|
||||
Reference in New Issue
Block a user