Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-12-2012, 05:15 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
Default COMMITTED: Damage Shield EXP fix

Currently the damage dealt via a damage shield factors into who gets experience. This is not how it functions on live.

Proof: http://www.magecompendium.com/pets-library.html#petexp and this post on Alla also mentions this fact in the "pincushioning" part http://everquest.allakhazam.com/foru...73098101489300

Code:
Index: attack.cpp
===================================================================
--- attack.cpp  (revision 2183)
+++ attack.cpp  (working copy)
@@ -3241,7 +3241,8 @@

        if(attacker){
                if(attacker->IsClient()){
-                       if(!attacker->CastToClient()->GetFeigned())
+                       // Damage shield damage shouldn't count towards who gets EXP
+                       if(!attacker->CastToClient()->GetFeigned() && !FromDamageShield)
                                AddToHateList(attacker, 0, damage, true, false, iBuffTic);
                }
                else

Last edited by cavedude; 09-13-2012 at 01:46 PM..
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:39 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3