CheckTradeEnchantClash
function · ui · primitive
- Address
0x496170· 204 bytes, up to0x49623b- Meaning
- Signals TRADE_REPLACE_ENCHANT when the pending enchant would replace one, else applies it
- Confidence
- verified, proof one
- Finding
- ui/popups#the-trade-enchant-clash
Finding: The trade enchant clash in ui: session and dialog verbs
ReplaceTradeEnchant() calls 0x6e6900 and pushes nothing. ClickTargetTradeButton(index) raises
Usage: ClickTargetTradeButton(index) for a non-number, hands a held money cursor to TradeAddMoney, and for index 7 calls 0x496170: with an
enchant already in the slot and the pending spell an enchant (effect 0x35) it signals TRADE_REPLACE_ENCHANT with two enchantment
names, else it applies the enchant through 0x6e6900 at once. BeginTrade() and CancelTrade() call Trade_C_BeginTrade and TradeCancel, which send opcodes
0x117 and 0x11c with no body.
The derivation is in the doc.
Callers 1
Callees 3
- GetCastSpellId spell
- BindSpellTargetTradeSlot spell
- FrameScript_SignalEvent2 ui
Calls and jumps by a bare address, from tables/calls.tsv.