HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spells that react to UnitDamageTarget

08-14-2006, 03:06 PM#1
Daelin
I have just checked to see which spells that should affect damage actually are affected by UnitDamageTarget (of course I tested for both friendly and enemy unit) and seems that Spirit Link reacts only if attacked by enemy unit, while Hardened Skin and Evasion are not triggered by the function! The only fully working spells are banish (because of ethereal stuff which makes units untargetable by any type of damage but spells and magic), Magic Shield which obviously absorbs mana instead of life, Divine Shield and lastly Berserk which continues to decrease the damage no matter what.

Invisibility did not seem to be a problem because even though the unit was invisible for the owner of the source of damage, it would still receive damage.

I personally did not need to test Defend, Magic Defense and Elune's Grace because I did not need them, but if not tested, I can do that too. I hope this piece of information is useful.

~Daelin
08-14-2006, 03:48 PM#2
Vexorian
Nothing that depends on the damage being caused by Attack works with the native.

Magic Defense works exactly as immunity if on.

Resistant Skin also has an effect. Never thought about Spirit Link as a threat, darn
08-14-2006, 04:04 PM#3
Daelin
Resistant Skin? Oops... never thought about it. But then I again, for my system I strictly use chaos damage.

I believe these are ALL the spells that could be possibly threatening for delicate calculations and checkings when it comes to damage. I just took all the abilities and looked over them. Hope I didn't miss anything though. And yes, Spirit Link is indeed problematic, unless of course you inflict the damage from a friendly unit (bounty becomes problem now eh (unless of course unit would die by damage and so you set its life to 0.405 and then damage it for 0.01).

~Daelin
08-14-2006, 04:20 PM#4
Vexorian
I found out GetDamageFactor uses an ally to do the damage so spirit link is not too much problem.