Page 1 of 1

Small fix in distro script

Posted: Tue Aug 29, 2006 3:08 pm
by Lagoon
097\Distro\pkg\mobiles\brainAI\scripts\combat\spellCombat.ecl
Line 91

elseif ( AP_GetVital(npc, MANA) <= 10 )

should be

elseif ( AP_GetVital(npc, MANA) <= 10.0 )
or
elseif ( CInt(AP_GetVital(npc, MANA)) <= 10 )
because AP_GetVital returns a double

Posted: Wed Aug 30, 2006 3:40 pm
by Austin
Internally, I don't think they both need to be the same. Itll still check if its 0.1 above or below what its being compared to.

Did you find the bug just reading the script? Or was it actually not working when used? If the latter, ill change it.

Posted: Wed Aug 30, 2006 4:10 pm
by Lagoon
just reading the script, I had no idea about how it works internally, I tought having them both doubles would be the best thing :P