Fix UNIT_FIELD_BYTES_0 index (56→23) and add per-type power arrays to Unit

- Correct UNIT_FIELD_BYTES_0 to index 23 (was incorrectly 56) in update fields JSON and table
- Replace single power/maxPower with powers[7]/maxPowers[7] arrays indexed by power type
- Add setPowerByType/setMaxPowerByType helpers for setting specific power types
This commit is contained in:
Kelsi 2026-02-19 19:33:50 -08:00
parent 76e1aef62d
commit 1fb1daea7f
3 changed files with 12 additions and 10 deletions

View file

@ -64,7 +64,7 @@ void UpdateFieldTable::loadWotlkDefaults() {
{UF::OBJECT_FIELD_ENTRY, 3},
{UF::UNIT_FIELD_TARGET_LO, 6},
{UF::UNIT_FIELD_TARGET_HI, 7},
{UF::UNIT_FIELD_BYTES_0, 56},
{UF::UNIT_FIELD_BYTES_0, 23},
{UF::UNIT_FIELD_HEALTH, 24},
{UF::UNIT_FIELD_POWER1, 25},
{UF::UNIT_FIELD_MAXHEALTH, 32},