I'm creating a spell that increases the player's damage, I'm using this script:
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
if not creature or not attacker or not attacker:isPlayer() then
return primaryDamage...