fix(Core/PetHandler): when dismissing a charmed unit owned by another unit; stop the charm instead of despawning (#18989)
https://github.com/TrinityCore/TrinityCore/commit/2cdea49d81ce2bb4e19df594c019a42fb4ba0c5b
This commit is contained in:
@@ -287,9 +287,6 @@ void WorldSession::HandlePetActionHelper(Unit* pet, ObjectGuid guid1, uint32 spe
|
|||||||
case COMMAND_ABANDON: // abandon (hunter pet) or dismiss (summoned pet)
|
case COMMAND_ABANDON: // abandon (hunter pet) or dismiss (summoned pet)
|
||||||
if (pet->GetCharmerGUID() == GetPlayer()->GetGUID())
|
if (pet->GetCharmerGUID() == GetPlayer()->GetGUID())
|
||||||
{
|
{
|
||||||
if (pet->IsSummon())
|
|
||||||
pet->ToTempSummon()->UnSummon();
|
|
||||||
else
|
|
||||||
_player->StopCastingCharm();
|
_player->StopCastingCharm();
|
||||||
}
|
}
|
||||||
else if (pet->GetOwnerGUID() == GetPlayer()->GetGUID())
|
else if (pet->GetOwnerGUID() == GetPlayer()->GetGUID())
|
||||||
|
|||||||
Reference in New Issue
Block a user