Core/Units: Cleanup hardcoded magic numbers for byte field offsets

(cherry picked from commit ac1dc75)
This commit is contained in:
Aokromes committed 2016-12-16 19:54:22 +01:00
1 parent dc0a599467
commit 949ce2d576
27 files changed
+103 -105

No files matched your search

+1 -1
View File
@@ -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)