D
DsD)Core(
Guest
How do you put a percentage of spell resistance on items? You see, the thing is, I have alot of trigger enhanced spell that don't actually do spell damage but simply set the life of a target unit to X.
What would be a logical (I'm not saying easy, it doesn't have to be easy, as long as it works well) way to make a unit resist lets say 15% of the damage that any spell does to him if he carries item X that has this property?
What I started doing is making my event that catches a unit for my damage meter, also put the catched unit into a trigger that checks if the damage taking unit has the item with spell resist. If it does, it checks if it was the target of OR OR OR OR (any of my 40-ish spells I have in the map) and then supposed to check the amount of damage done, and give 15% back.
But half way when I was doing that, I thought there MUST be better way, since units can still die from abilities if they do more damage than the life they had, before the trigger can give the 15% back, right?
+++rep for anything that will point me in the right direction, big thanks in advance.
What would be a logical (I'm not saying easy, it doesn't have to be easy, as long as it works well) way to make a unit resist lets say 15% of the damage that any spell does to him if he carries item X that has this property?
What I started doing is making my event that catches a unit for my damage meter, also put the catched unit into a trigger that checks if the damage taking unit has the item with spell resist. If it does, it checks if it was the target of OR OR OR OR (any of my 40-ish spells I have in the map) and then supposed to check the amount of damage done, and give 15% back.
But half way when I was doing that, I thought there MUST be better way, since units can still die from abilities if they do more damage than the life they had, before the trigger can give the 15% back, right?
+++rep for anything that will point me in the right direction, big thanks in advance.