mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
C_PlayerInfo.CanUseItem now calls CGPlayer_C::CanUseItem (0x5EA930), the check 1.12 uses for every "can use" answer it gives Lua, instead of rebuilding its level, mask, proficiency, skill, spell, PvP and reputation tests by hand. IsUsableItem / C_Item.IsUsableItem now follow the item leg of 1.12's action-bar usable check (0x4E5050), which matches 4.3.4's IsUsableItem: the item must be carried, its on-use spell must not be held, an item with no on-use spell is usable while the player has control, and the engine's spell test decides the rest. Level, class and race are no longer checked here, as in both engines.