#Ability gives Strength, but strength does not give hp
1 messages · Page 1 of 1 (latest)
- try print something inside.
If it shows a lot of the same message, it is called every server tick
if it shows only once, it only get called during buff creation
- check this
Found 4 functions for calculatestatbonus
🇸 CDOTA_BaseNPC_Hero:CalculateStatBonus(force: bool): nil
Recalculate all stats after the hero gains stats.
🇸 CDOTABaseAbility:OnHeroCalculateStatBonus(): nil
🇸 CDOTA_Ability_Lua:OnHeroCalculateStatBonus(): nil
Caster (hero only) gained a level, skilled an ability, or received a new stat bonus.
🇸 CDOTA_Item_Lua:OnHeroCalculateStatBonus(): nil
Caster (hero only) gained a level, skilled an ability, or received a new stat bonus.
statbonuses are only calculated on modifier applied/destroy automatically
any time you work with stacks or osme other bullshit, you have to call it manually
thats why dropping and picking up scepter updates the hp values, because a new modifier is being added/removed
@minor dove thank u very much)
You can also try refresh modifier when stack count changed