ValidateSpellItemTarget
function · ui · primitive
- Address
0x495d60· 1026 bytes, up to0x496161- Signature
void __fastcall (int suppress, uint32_t unused, uint32_t guidHigh, uint32_t arg4)- Meaning
- Checks a clicked item against the pending spell's enchant and prospecting effects, then binds it with 0x6e5b40
- Confidence
- verified, proof one
- Finding
- spell/itemtarget#item-click-validator
Finding: Item click validator in spell: itemtarget
0x495d60(suppress, item guid) resolves the item (mask 2), the pending spell (0x6e3d10) and its record;
a missing item or record returns without a report. It walks the three effects once each. An enchant effect
(53 or 54) runs the enchant checks, effect 127 the prospecting checks, any other effect nothing. When the
walk ends it binds the item and returns. Its three callers are the paper doll click 0x4c76fb, the bag
click 0x4f9c6d and the Lua BindEnchant, which passes 1 for suppress. The popup answer ReplaceEnchant
(0x48d300) binds the stashed item with 0x6e5b40 directly, without calling it again.
The derivation is in the doc.
Callers 3
Callees 14
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- GetItemClass objectlayer
- GetItemSubClass objectlayer
- GetItemInventoryType objectlayer
- CGItem_C::IsBound objectlayer
- CGPlayer_C::FindSkillIndex objectlayer
- ReportCastFailure spell
- GetSpellEffectPointsInt spell
- GetCastSpellId spell
- BindSpellTargetObject spell
- FrameScript_SignalEvent ui
- FrameScript_SignalEvent2 ui
Calls and jumps by a bare address, from tables/calls.tsv.