HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damaged for 1.00 Heals The Unit When Adding It Back To It's Health?!

07-27-2008, 04:11 AM#1
Brash
Trigger:
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) + (Damage taken))

I have a dmg detection trigger. The "damage source" unit is set to do 1-1 dmg per attack.

I used text function to tell me the dmg received by the target unit to test and it shows that it is detecting correctly on every attack for exactly 1.00 damage.

Also, I have the damaged unit set to have no regeneration for testing.

But when that above code is ran, i often see the units health go up by 1 point per attack from his current health!??? His life is suppose to look like it never budged!

Why is this?
07-27-2008, 12:54 PM#2
DioD
Unit attack != unit takes damage, this is different event.

Unit takes damage have

GetTriggerUnit() - damaged
GetDamageSource() nc
GetEventDamage() damage value