Hello, can you help me to understand why this function doesn't work as i think it should ?
Here is the simple example code:
It's like dmg reflection. I think it should reflect to the attacker the damage he dealts. (HIT 40, REFLECT 40)
But it doesn't reflect the full primaryDamage (it's like HIT 40, REFLECT 15)
Why does it happen and how it works?
Here is the simple example code:
Code:
function onHealthChange(creature, attacker, primaryDamage, primaryType, secondaryDamage, secondaryType, origin)
doTargetCombatHealth(creature, attacker, primaryType, primaryDamage, primaryDamage)
return primaryDamage, primaryType, secondaryDamage, secondaryType
end
It's like dmg reflection. I think it should reflect to the attacker the damage he dealts. (HIT 40, REFLECT 40)
But it doesn't reflect the full primaryDamage (it's like HIT 40, REFLECT 15)
Why does it happen and how it works?