Core/Spells: Fix hunter pet namechanging when using Certificate of Ownership (spellID 53987, used by itemID 43850)
(There's also, as far as I know, no window on hunter pet renames, one selects the pet and clicks 'rename'). Closes issue 2967. --HG-- branch : trunk
This commit is contained in:
@@ -6909,7 +6909,7 @@ void Spell::EffectRenamePet(SpellEffIndex /*effIndex*/)
|
|||||||
!unitTarget->ToCreature()->isPet() || ((Pet*)unitTarget)->getPetType() != HUNTER_PET)
|
!unitTarget->ToCreature()->isPet() || ((Pet*)unitTarget)->getPetType() != HUNTER_PET)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
unitTarget->RemoveByteFlag(UNIT_FIELD_BYTES_2, 2, UNIT_CAN_BE_RENAMED);
|
unitTarget->SetByteFlag(UNIT_FIELD_BYTES_2, 2, UNIT_CAN_BE_RENAMED);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Spell::EffectPlayMusic(SpellEffIndex effIndex)
|
void Spell::EffectPlayMusic(SpellEffIndex effIndex)
|
||||||
|
|||||||
Reference in New Issue
Block a user