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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4394,9 +4394,9 @@ void Mob::BuffFadeBySlot(int slot, bool iRecalcBonuses)
case SpellEffect::Familiar: case SpellEffect::Familiar:
{ {
Mob *mypet = GetPet(); Mob *mypet = GetPet();
if (mypet){ if (mypet && mypet->IsNPC() &&
if(mypet->IsNPC()) mypet->CastToNPC()->GetPetSpellID() == buffs[slot].spellid) {
mypet->CastToNPC()->Depop(); mypet->CastToNPC()->Depop();
SetPetID(0); SetPetID(0);
} }
break; break;