changeset 1992:1e5f097e1c2d

fixing incorrect item checked when dealing damage to monsters
author Grumpy7
date Sun, 03 Nov 2013 01:25:54 -0800
parents 012fcb1f223a
children a9ca837744d7 2bcb4ec491cb
files Actor.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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 )
           {