HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

UnitDamageTarget-VS-Spell Immunity

09-03-2007, 05:43 PM#1
HyperActive
When you use the UnitDamageTarget function with DamageType=AttackType=WeaponType=null, does it still reduces the damage by 33% if you have Runed Bracers item?
If not how can I make this happen? Do I need to define all the conditions of spell immunity (like unit has item, unit has ability...)?
09-03-2007, 05:48 PM#2
TaintedReality
No, because the damage isn't spell damage. If you want to make it affected by spell immunity/resistance just change the damage type to magic. Why do you have the damage type set to null if you don't want it to bypass spell resistance?
09-03-2007, 06:19 PM#3
HyperActive
Cause when I set it to magic, it doesn't deal full damage. I think it also counts armor. Or am I seeing things, could be...
09-03-2007, 06:38 PM#4
moyack
If you use UnitDamageTarget is because you want to take into account the armor, damage and weapon type. So if you set it as a magic damage, Runed bracers should be working.
09-03-2007, 06:50 PM#5
HyperActive
I see. Well, thanks to the both of you.