Hi, I want to made spell which boost next auto attack. Spell gives certain storage to player, but my onHealthChange scripts doesn't work.
Lua:
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType)
if getStorageValue(attacker, 1005) == 1 then
primaryDamage, secondaryDamage = primaryDamage*100, secondaryDamage*100
setStorageValue(attacker, 1005, -1)
end
return primaryDamage, primaryType, secondaryDamage, secondaryType
end