Green Damage detection

Level 8
Joined
Apr 16, 2025
Messages
160
How to determine the hero's damage before using the ability? I can determine his strength, but I can't determine the green damage.

Since my hero sometimes crits, the damage engine is also not suitable.

In short, I can determine the base damage under attack 0, but how to determine the rest of the damage?
 
There's no function to retrieve that value as far as I know, so you'd need to keep track of all damage-boosting effects in your map (good luck)

I'm trying to think of a convoluted system e.g. force the hero to attack something, take the damage dealt, substract the base attack and you'll end up with this value, but that would probably only work if the dice damage is 1 otherwise it's way too approximate
 
If you use noob stuff like default buffs, auras and defaul items bonuses - no chances, only with ujapi or memory hack.
Full control for green stats - css.
Full control for white stats - blz functions.
Correct way only one: do not use noob stuff and and do everything custom.
If you use reforged functions, you can completely ignore green stats. (except attack speed, although it is the attack speed that is bugged in the css)
Unit aquires an item: BlzSetUnitBaseDamage = BlzGetUnitBaseDamage + value from item. Same methods for buffs/auras, only custom.
Auras are harder to make and can be ignored in favor of buffs, which are much more optimized.
Same for 1.26 but with css only and set base (white) attack and armor = 0.
 
Back
Top