IsBookSpellCurrent
function · ui · primitive
- Address
0x4b3600· 235 bytes, up to0x4b36ea- Signature
bool __fastcall (uint32_t index, bool pet)- Meaning
- Answers whether a book spell's trade skill or form is the current one
- Confidence
- verified, proof one
- Finding
- ui/spellbook#checked-spells
Finding: Checked spells in ui: the spell book
IsCurrentCast (0x4b4370) pushes 1 or nil from 0x4b3600(slot, book), a smaller test than the action
bar's. A slot of no spell is false. A spell whose first effect is 47 is true when its misc value
(+0x1a8), if nonzero, equals the open craft profession, else when the open trade-skill line equals the
line of its skill ability (taken from the open recipe record if there is one). Any spell with a
shapeshift aura effect (aura 36) is true when that effect's misc value equals the player's form byte.
There are no casting, targeting, item or attack arms.
The derivation is in the doc.
Callers 1
Callees 3
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGUnit_C::FindSkillLineAbility objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.