Merge d413ea424323d834e1dc3d9b01a720f7063be697 into ba2ca5eada80ac758ef8c2a2510cb39b0563119a

This commit is contained in:
ltroylove 2026-04-10 21:11:36 -05:00 committed by GitHub
commit 93f89b7bff
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:
{
Mob *mypet = GetPet();
if (mypet){
if(mypet->IsNPC())
mypet->CastToNPC()->Depop();
if (mypet && mypet->IsNPC() &&
mypet->CastToNPC()->GetPetSpellID() == buffs[slot].spellid) {
mypet->CastToNPC()->Depop();
SetPetID(0);
}
break;