View Single Post
  #2  
Old 09-03-2008, 09:19 AM
Hugghiebear
Fire Beetle
 
Join Date: Apr 2008
Location: Earth
Posts: 10
Default

Trying to clean that up a little with tabs...


void Mob::SetInvisible(bool state)
{
invisible = state;
SendAppearancePacket(AT_Invis, invisible);
// Invis breaks charms
if ((this->GetPetType() == petCharmed) && invisible)
{
Mob* formerpet = this->GetPet();
formerpet->BuffFadeByEffect(SE_Charm);
}
}
Reply With Quote