I know there is onChangeHealth function to make it work. but it doesn't work for me, the only damage that gets increased, is the DMG mobs to the player. I don't know how to fix this. I am in TFS1.5. This is what my code looks like right now:
local event = CreatureEvent("DamageBoost")
function event.onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
primaryDamage = primaryDamage * 100.5
secondaryDamage = secondaryDamage * 100.5
return primaryDamage, primaryType, secondaryDamage, secondaryType
end
event:register()
I do not know how to fix it so that the damage also applies to the player->mob.
local event = CreatureEvent("DamageBoost")
function event.onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
primaryDamage = primaryDamage * 100.5
secondaryDamage = secondaryDamage * 100.5
return primaryDamage, primaryType, secondaryDamage, secondaryType
end
event:register()
I do not know how to fix it so that the damage also applies to the player->mob.