View Single Post
  #1  
Old 10-02-2010, 09:23 AM
amraist
Fire Beetle
 
Join Date: Aug 2005
Posts: 29
Default 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
Reply With Quote