Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-03-2008, 09:09 AM
Hugghiebear
Fire Beetle
 
Join Date: Apr 2008
Location: Earth
Posts: 10
Default Charm fade by invis

Hello all,

Even though Sony made a change so that invisibility doesn't kill pets, they did leave it that invisibility would break charm. This appears to be absent within EqEmu (and consequently makes it harder to deal with crowd control and charm fighting abilities). To fix this, I propose changing the Mob::SetInvisible function. I did test it on my personal server.


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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:19 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3