diff Actor.cpp @ 1992:1e5f097e1c2d

fixing incorrect item checked when dealing damage to monsters
author Grumpy7
date Sun, 03 Nov 2013 01:25:54 -0800
parents 33787c8938a5
children 985fff9fb62d
line wrap: on
line diff
--- a/Actor.cpp	Sun Nov 03 01:20:06 2013 -0800
+++ b/Actor.cpp	Sun Nov 03 01:25:54 2013 -0800
@@ -3789,10 +3789,10 @@
         if ( player->HasItemEquipped((ITEM_EQUIP_TYPE)i) )
         {
           ItemGen* item;
-          //if (i == 0)
+          if (i == 0)
+            item = player->GetOffHandItem();
+          else
             item = player->GetMainHandItem();
-          //else
-            //item = player->GetOffHandItem();
           a4 = item->_439DF3_get_additional_damage((int*)&attackElement, &isLifeStealing);
           if ( isLifeStealing && pMonster->sCurrentHP > 0 )
           {