Finally Fixed... :)
The issue last commit was the toughness is refreshed and the damage is not reflected. This commit fixes the bug. Yey...
This commit is contained in:
@@ -2345,7 +2345,7 @@ public:
|
|||||||
wppt = NEW WParsedPT(PT,NULL,(MTGCardInstance *) source);
|
wppt = NEW WParsedPT(PT,NULL,(MTGCardInstance *) source);
|
||||||
}
|
}
|
||||||
((MTGCardInstance *) target)->origpower = wppt->power.getValue();
|
((MTGCardInstance *) target)->origpower = wppt->power.getValue();
|
||||||
((MTGCardInstance *) target)->origtoughness = wppt->toughness.getValue();
|
((MTGCardInstance *) target)->origtoughness = (wppt->toughness.getValue() + ((MTGCardInstance *) target)->life)-((MTGCardInstance *) target)->life;//what?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int addToGame()
|
int addToGame()
|
||||||
@@ -2360,8 +2360,6 @@ public:
|
|||||||
{//Characteristic-defining abilities
|
{//Characteristic-defining abilities
|
||||||
_target->origpower = wppt->power.getValue();//set orig pt
|
_target->origpower = wppt->power.getValue();//set orig pt
|
||||||
_target->origtoughness = wppt->toughness.getValue();
|
_target->origtoughness = wppt->toughness.getValue();
|
||||||
_target->power -= _target->pbonus;//remove current bonuses
|
|
||||||
_target->addToToughness(-_target->tbonus);
|
|
||||||
_target->setPower(_target->origpower);//update PT
|
_target->setPower(_target->origpower);//update PT
|
||||||
_target->setToughness(_target->origtoughness);
|
_target->setToughness(_target->origtoughness);
|
||||||
_target->power += _target->pbonus;//add new bonus
|
_target->power += _target->pbonus;//add new bonus
|
||||||
@@ -2386,7 +2384,7 @@ public:
|
|||||||
{
|
{
|
||||||
if(cda)
|
if(cda)
|
||||||
{
|
{
|
||||||
;
|
/*??Do Nothing??*/;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user