EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Backstab Augment Fix (https://www.eqemulator.org/forums/showthread.php?t=32215)

amraist 10-02-2010 09:23 AM

Backstab Augment Fix
 
This will add backstab damage from augments to the weapons base backstab damage.
Code:

Index: zone/special_attacks.cpp
===================================================================
--- zone/special_attacks.cpp    (revision 1678)
+++ zone/special_attacks.cpp    (working copy)
@@ -606,6 +606,10 @@
                wpn = CastToClient()->GetInv().GetItem(SLOT_PRIMARY);
                primaryweapondamage = GetWeaponDamage(other, wpn);
                backstab_dmg = wpn->GetItem()->BackstabDmg;
+              for(int x = 0; x < 5; x++) {
+                      if(wpn->GetAugment(x) && wpn->GetAugment(x)->GetItem())
+                              backstab_dmg += wpn->GetAugment(x)->GetItem()->BackstabDmg;
+              }
        }
        else{
                primaryweapondamage = (GetLevel()/7)+1; // fallback incase it's a npc without a weapon, 2 dmg at 10, 10 dmg at 65



All times are GMT -4. The time now is 08:27 PM.

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