benilla-re systems structs docs

PendingSpellCast

struct · spell · 256 bytes

Meaning
Holds the pending cast request: source, caster and spell, the target mask, the targets and the text
Confidence
verified, proof one
Finding
spell/pending#pending-cast-fields

Finding: Pending cast fields in spell: pending

Each field below is written where the table says, besides three zeroings of the whole record: the system start 0x6e11e0, the request's rep stos (0x6e4f80) and the re-arm's (0x6e746a). The start also stores -1 at +0x4c. The bytes +0x28, +0x2c, +0x48 to +0x6c and +0xf0 to +0xf8 are written only by those zeroings and that store, and nothing reads them.

offsetsizefieldwritten by
+0x008source: the casting item's guid, else the caster'srequest 0x6e4fa1, re-arm 0x6e747d
+0x088the caster's guidrequest 0x6e4fb1, re-arm 0x6e748f
+0x104spell idrequest 0x6e4f88, re-arm 0x6e7472
+0x142target maskthe binders (next entry), 0x6e5b51 reads it for the rollback
+0x188unit, game object or corpse targetthe unit and object binders, 0x6e545b for an unknown object
+0x208item target, or the trade slot 60x6e5f3e, 0x6e6925
+0x3012source point0x6e6107
+0x3c12destination point0x6e6132
+0x70128text target0x6e5311

The derivation is in the doc.

Fields 9

offsetsizetypenamemeaningconfidencefinding
0x00008uint64_tm_sourceGuidHolds the casting item's guid, else the caster'sverified, proof onespell/pending#pending-cast-fields
0x00088uint64_tm_casterGuidHolds the caster's guidverified, proof onespell/pending#pending-cast-fields
0x00104int32_tm_spellIdHolds the spell being castverified, proof onespell/pending#pending-cast-fields
0x00142uint16_tm_targetMaskHolds the bits of the targets bound so far, which the target block writer sendsverified, proof onespell/pending#target-mask-bits
0x00188uint64_tm_targetGuidHolds the bound unit, game object or corpse guid, or an unknown object'sverified, proof onespell/pending#pending-cast-fields
0x00208uint64_tm_itemGuidHolds the bound item's guid, or the trade slot 6verified, proof onespell/pending#pending-cast-fields
0x003012float[3]m_sourcePointHolds the source point a location bind storesverified, proof onespell/pending#pending-cast-fields
0x003c12float[3]m_destPointHolds the destination point a location bind storesverified, proof onespell/pending#pending-cast-fields
0x0070128char[128]m_textHolds the text target copied from the pending nameverified, proof onespell/pending#pending-cast-fields

Globals of this type