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: Elemental Agility AA (https://www.eqemulator.org/forums/showthread.php?t=26819)

Varkalas D`Lonovan 11-21-2008 05:55 PM

GoD: Elemental Agility AA
 
[zone/attack.cpp, ~line 293]

find:

Code:

        AA_mod += 3*GetAA(aaPhysicalEnhancement);
        AA_mod += 2*GetAA(aaLightningReflexes);
        AA_mod += GetAA(aaReflexiveMastery);
        chancetohit -= chancetohit * AA_mod / 100;

add below:

Code:

        //        Magician AA:  Elemental Agility
        //        Applies 2, 5, or 10% damage avoidance
        /////////////////////////////////////////
        uint16 aaPetMod = 0;
        if (defender->IsPet() && defender->GetOwner()->IsClient()) {
                switch (GetAA(aaElementalAgility)) {  // defender->GetOwner()->GetAA(aaElementalAgility) ??
                        case 1:
                                aaPetMod = 2;
                                break;
                        case 2:
                                aaPetMod = 5;
                                break;
                        case 3:
                                aaPetMod = 10;
                                break;
                }
                chancetohit -= chancetohit * aaPetMod / 100;
        }


So_1337 11-21-2008 05:57 PM

Had a feeling we'd see more from you. Nice work, I'm sure you'll make for some happy mages =)


All times are GMT -4. The time now is 11:01 AM.

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