mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-05 07:52:25 +00:00
fix: only dismiss pet summoned by the fading familiar buff (#5063)
This commit is contained in:
parent
1958a12bc7
commit
758774b0bf
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user