s_rangedIconPath
global · unassigned
- Address
0xbc6578· 260 bytes, up to0xbc667b- Type
char[260]- Meaning
- Holds the ranged weapon icon path of the ranged helper
- Confidence
- verified, proof one
- Finding
- ui/actionbar#attack-and-ranged-icons
Finding: Attack and ranged icons in ui: action bars
A spell whose first effect is 78 shows 0x4e6870 instead of its own icon, on the action bar
(0x4e6ab2), in the spellbook (0x4b3f8a) and on the cursor (0x494d56). The helper returns
nil without a player. A nonzero form byte ([unit+0x110]+0x212) with a SpellShapeshiftForm record
whose icon field (+0x34) names a SpellIcon gives that icon. Otherwise a disarmed player
(UNIT_FIELD_FLAGS & 0x200000) whose main hand holds a weapon gives Interface\Buttons\Spell-Reset.
Otherwise the main-hand item (equipment slot 15) gives its inventory icon, or Spell-Reset with no
item. A ranged-repeat spell shows 0x4e6990: the ranged item (slot 17) icon, or nil when there is none
or its subclass is 16, sending the caller to the spell's own icon.
The derivation is in the doc.