hi, i'm trying to add this in combat.cpp but i get error.
to compile use vs 2010 x64, use tfs 0.4 rev 3777
image with error
C++:
if(caster && caster->getPlayer())
{
std::string value;
caster->getStorage(378378, value);
int32_t plus = (int32_t)(atoi(value.c_str()));
int32_t power =plus *2.5 ;
if(plus > 0 && params.combatType != COMBAT_HEALING )
change = (int32_t)std::ceil (change + change * power /100);
}
image with error
Attachments
-
error ceil.png87.5 KB · Views: 14 · VirusTotal