This commit is contained in:
ltroylove
2026-04-10 21:11:36 -05:00
committed by GitHub
+2 -2
View File
@@ -4394,8 +4394,8 @@ 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);
} }