mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Correct charm invis breaking
This commit is contained in:
parent
ec36a3787d
commit
1dd911b150
10
zone/mob.cpp
10
zone/mob.cpp
@ -503,13 +503,9 @@ void Mob::SetInvisible(uint8 state)
|
||||
SendAppearancePacket(AT_Invis, invisible);
|
||||
// Invis and hide breaks charms
|
||||
|
||||
if ((this->GetPetType() == petCharmed) && (invisible || hidden || improved_hidden))
|
||||
{
|
||||
Mob* formerpet = this->GetPet();
|
||||
|
||||
if(formerpet)
|
||||
formerpet->BuffFadeByEffect(SE_Charm);
|
||||
}
|
||||
auto formerpet = GetPet();
|
||||
if (formerpet && formerpet->GetPetType() == petCharmed && (invisible || hidden || improved_hidden))
|
||||
formerpet->BuffFadeByEffect(SE_Charm);
|
||||
}
|
||||
|
||||
//check to see if `this` is invisible to `other`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user