Hello,
I'm trying to make the fire condition apply when playing attacking the other, but despite being applied, it's not returning damage to the player. What am I doing wrong?
TFS 1.4, dont errors in console, just the damage dont work, but the effect of the attack appears!
I'm trying to make the fire condition apply when playing attacking the other, but despite being applied, it's not returning damage to the player. What am I doing wrong?
Lua:
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
local condition = Condition(CONDITION_FIRE)
condition:addDamage(4, 100, {1, 3})
creature:addCondition(condition)
return primaryDamage, primaryType, secondaryDamage, secondaryType, origin
end
TFS 1.4, dont errors in console, just the damage dont work, but the effect of the attack appears!