Trying to Make Attunement Absorb Magical Damage as well

Darwin

Well-Known Member
Sep 5, 2017
409
3
32
Hi. I'm trying to make Attunement absorb Magical damage along with melee damage. I'd post what I've tried, but tbh I've tried a million things lol. I tried adding a bunch of MagicDamageAbsorb checks under the Attunement script, but that had no effect. Then I tried adding an attunement spell TryAbsorbing check under spellhelper but couldn't get it to compile properly. In spite of being as noobie as I am I'm usually able to figure things out through sheer will, but in this case I've been pretty stumped for a while.

Any help would be appreciated. Thanks.
 

Dexter_Lexia

Moderator
ServUO Developer
Jul 3, 2014
3,889
168
42
Shard Name
Alexandria
Donate
Donate money to this user
AOS.cs:

Code:
            if (type <= DamageType.Ranged)
            {
                AttuneWeaponSpell.TryAbsorb(m, ref totalDamage);
            }
change to:

Code:
AttuneWeaponSpell.TryAbsorb(m, ref totalDamage