EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   GoD: Coat of Thistles AA (https://www.eqemulator.org/forums/showthread.php?t=26620)

seveianrex 10-24-2008 09:12 AM

GoD: Coat of Thistles AA
 
{zone/attack.cpp}

~ln 1886 locate:

Code:

        if(spellbonuses.DamageShieldSpellID != 0 && spellbonuses.DamageShieldSpellID != SPELL_UNKNOWN)
                spellid = spellbonuses.DamageShieldSpellID;
        //invert DS... spells yeild negative values for a true damage shield
        if(DS < 0) {

Add below

Code:

                if (IsClient())
                {
                        switch (CastToClient()->GetAA(aaCoatofThistles))
                        {
                        case 1:
                                DS *= 1.02;
                                break;
                        case 2:
                                DS *= 1.04;
                                break;
                        case 3:
                                DS *= 1.06;
                                break;
                        case 4:
                                DS *= 1.08;
                                break;
                        case 5:
                                DS *= 1.10;
                                break;
                        }
                }


seveianrex 10-24-2008 08:04 PM

This is now committed


All times are GMT -4. The time now is 10:18 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.