PT should work fine now...

This commit is contained in:
Anthony Calosa
2015-09-10 00:26:20 +08:00
parent 62dd54c886
commit 9d668342be

View File

@@ -4185,7 +4185,8 @@ for (it = types.begin(); it != types.end(); it++)
WParsedInt * val = NEW WParsedInt(newpower,NULL, source); WParsedInt * val = NEW WParsedInt(newpower,NULL, source);
oldpowerbonus = _target->power - _target->origpower;//keep bonus if any oldpowerbonus = _target->power - _target->origpower;//keep bonus if any
_target->setPower(oldpowerbonus + val->getValue()); _target->setPower(oldpowerbonus + val->getValue());
_target->power += reapplyCountersBonus(_target,false,true); _target->origpower = val->getValue();
//_target->power += reapplyCountersBonus(_target,false,true);
delete val; delete val;
} }
if(newtoughnessfound ) if(newtoughnessfound )
@@ -4193,7 +4194,8 @@ for (it = types.begin(); it != types.end(); it++)
WParsedInt * val = NEW WParsedInt(newtoughness,NULL, source); WParsedInt * val = NEW WParsedInt(newtoughness,NULL, source);
oldtoughnessbonus = _target->toughness - _target->origtoughness;// keep bonus if any oldtoughnessbonus = _target->toughness - _target->origtoughness;// keep bonus if any
_target->setToughness(oldtoughnessbonus + val->getValue()); _target->setToughness(oldtoughnessbonus + val->getValue());
_target->addToToughness(reapplyCountersBonus(_target,true,false)); _target->origtoughness = val->getValue();
//_target->addToToughness(reapplyCountersBonus(_target,true,false));
_target->life = _target->toughness; _target->life = _target->toughness;
delete val; delete val;
} }