mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-27 04:02:37 +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:
|
||||
{
|
||||
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user