- Joined
- Oct 11, 2012
- Messages
- 711
Can Bribe's GUI Damage Engine differentiate spell and physical damage? Thanks.
If so, how to do that?
If so, how to do that?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
It can't
there is a damage system that detects physical and spell damage though. Not sure which one it is tho.
It's pretty simple to use if you know vJASS, but lfh's can also detect the difference, and it's GUI, but it's poorly coded and has bad performance
mine is going to have some performance boosts in the future + dynamic events + unit specific events ;D
mine is going to have some performance boosts in the future + dynamic events + unit specific events ;D
if (archetype == Archetype.PHYSICAL)and (targetId == 'Hmkg' ) then
set damage = damage - GetHeroStr(target,false)
endif
if (archetype == Archetype.PHYSICAL)and (GetUnitTypeId(target) == 'Hmkg' ) then
set damage = damage - GetHeroStr(target,false)
endif
Use LFH if you want to filter out damage and know if it was Physical, Spell or Code.
Bribe's doesn't do that.
Just a warning, you can have negative damage, so be careful
First do your damage reduction, then do your damage absorption
set damage = -damageno, they aren't the same thing
damage reduction minimum is 0
damage absorption minimum is < 0
If a unit has 10 hp and takes 5 damage, and then you do
set damage = -damage
That unit will then heal for 5 hp instead of taking 5 damage (-5 damage).
set s__DDS_DDS__damage_p = 1
