One of my scripts stopped working after the update (simplified version here):
-- Test whether entity takes damage
if g_Entity[e]['health'] < 99999 then
-- Possible damage frequency is based on RPG stat Agility
if GetTimer(e) > Threshold then
-- Damage adds to Counter, amount is based on RPG stat SpellPower and equipped weapon
DCounter[e] = DCounter[e] + DealtDamage
-- Prompt the damage
Prompt("You hit the enemy.")
-- Reset timer
StartTimer(e)
end
-- Prompt too fast
if GetTimer(e) < Threshold then
Prompt("You are too slow.")
end
-- There are other calculations here, but they're unimportant regarding the issue
-- Reset the default health variable to end damage control phase
SetEntityHealth(e,99999)
end
No matter what I do, it always prompts "You are too slow.". It worked fine before the update. As a test I made it prompt the entity timer and noted that for some reason the timer goes back to 0 every time the enemy is hit even though it should only happen when enemy is hit AND GetTimer(e) is over threshold. So my guess is that asking GetTimer(e) inside an if statement resets the clock. For some reason.
I still have to do some further testing, but my main point is that my script worked before, but doesn't anymore.