fix: only dismiss pet summoned by the fading familiar buff (#5063)

This commit is contained in:
ltroylove
2026-04-20 19:51:47 -05:00
committed by GitHub
parent 1958a12bc7
commit 758774b0bf
+2 -2
View File
@@ -4394,8 +4394,8 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
case SpellEffect::Familiar:
{
Mob *mypet = GetPet();
if (mypet){
if(mypet->IsNPC())
if (mypet && mypet->IsNPC() &&
mypet->CastToNPC()->GetPetSpellID() == buffs[slot].spellid) {
mypet->CastToNPC()->Depop();
SetPetID(0);
}