mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
IsDualWielding() ports 4.3.4's Script_IsDualWielding (0x00452A50): true when the off-hand item is weapon class and the player can dual wield. OffhandHasWeapon is a native 1.12 global (0x004C9570, same body as 3.3.5/4.3.4: off-hand item class 2 -> 1, else nil). Our override returned booleans and tested inventory type instead, so remove it and let the engine's own function stand. Item class IDs 2 (Weapon) and 12 (Quest) are now used in more than one file, so they move to Offsets.h as ITEM_CLASS_WEAPON / ITEM_CLASS_QUEST (verified against ItemClass.dbc).