EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Slay Undead Fix **Priority (https://www.eqemulator.org/forums/showthread.php?t=26573)

seveianrex 10-19-2008 10:57 PM

Slay Undead Fix **Priority
 
Sorry for the additional thread. An important change is needed for this recent fix.

In {attack.cpp} function TryCriticalHit()

Code:

        if(defender && defender->GetBodyType() == BT_Undead || defender->GetBodyType() == BT_SummonedUndead || defender->GetBodyType() == BT_Vampire){
                switch(GetAA(aaSlayUndead)){
                        case 1:
                                critMod += 33;
                                break;
                        case 2:
                                critMod += 66;
                                break;
                        case 3:
                                critMod += 100;
                                break;
                }
                if (GetAA(aaSlayUndead) > 0)
                    slayUndeadCrit = true;
        }


cavedude 10-19-2008 11:12 PM

I already corrected it in SVN earlier today. Sorry for not mentioning it :)

seveianrex 10-19-2008 11:15 PM

Heh. I was just levelling an alt Warrior up in Kurns Tower and I had an OH SH*T moment when I got the SU message.


All times are GMT -4. The time now is 10:55 AM.

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