Hmm, would it not be faster if you created the event inside of the first function?[/code][/jass]
UnitBlockNormalDamage
not ratedBlocks all normal damage dealt to the given unit, until the duration expires.
If you want it to last forever, set duration to 0 or less.
Note, that by "normal" I mean damage dealt by units and spells, it has nothing to do with damage types (eg. Normal/Piercing/Siege/etc.).
Triggers can still reduce the life of the unit.
This might not save the unit from dying if the attack deals more damage than the unit's maximum hitpoints.
If you want it to last forever, set duration to 0 or less.
Note, that by "normal" I mean damage dealt by units and spells, it has nothing to do with damage types (eg. Normal/Piercing/Siege/etc.).
Triggers can still reduce the life of the unit.
This might not save the unit from dying if the attack deals more damage than the unit's maximum hitpoints.