Core/Units: Cleanup hardcoded magic numbers for byte field offsets
(cherry picked from commit ac1dc75)
This commit is contained in:
1 parent
dc0a599467
commit
949ce2d576
27 files changed
+103
-105
No files matched your search
@@ -5376,7 +5376,7 @@ void Spell::EffectRenamePet(SpellEffIndex /*effIndex*/)
|
||||
!unitTarget->IsPet() || ((Pet*)unitTarget)->getPetType() != HUNTER_PET)
|
||||
return;
|
||||
|
||||
unitTarget->SetByteFlag(UNIT_FIELD_BYTES_2, 2, UNIT_CAN_BE_RENAMED);
|
||||
unitTarget->SetByteFlag(UNIT_FIELD_BYTES_2, UNIT_BYTES_2_OFFSET_PET_FLAGS, UNIT_CAN_BE_RENAMED);
|
||||
}
|
||||
|
||||
void Spell::EffectPlayMusic(SpellEffIndex effIndex)
|
||||
|
||||
Reference in new issue
Block a user