From d6fd135dd17da71f504aec4149f2d52d0f3877c0 Mon Sep 17 00:00:00 2001 From: Austin Hickey Date: Fri, 15 Dec 2023 00:17:13 -0500 Subject: [PATCH] fix VIRTUAL_ITEM_SLOT_* references --- VMangos/CreatureMethods.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VMangos/CreatureMethods.h b/VMangos/CreatureMethods.h index 3334fad928..e02c4786dc 100644 --- a/VMangos/CreatureMethods.h +++ b/VMangos/CreatureMethods.h @@ -1027,9 +1027,9 @@ namespace LuaCreature creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 1, off_hand); creature->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 2, ranged); #else - creature->SetVirtualItem(VIRTUAL_ITEM_SLOT_0, main_hand); - creature->SetVirtualItem(VIRTUAL_ITEM_SLOT_1, off_hand); - creature->SetVirtualItem(VIRTUAL_ITEM_SLOT_2, ranged); + creature->SetVirtualItem(BASE_ATTACK, main_hand); + creature->SetVirtualItem(OFF_ATTACK, off_hand); + creature->SetVirtualItem(RANGED_ATTACK, ranged); #endif return 0; }