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); } } |
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); }} |
That looks pretty good. I think this was discussed a while back. But, I was under the assumption that the charm window that Derision got working was able to dismiss pets, so this wouldn't really be needed. I may be wrong about that though. Either way, it probably wouldn't hurt to add this code into the source. Thanks for the submission!
|
Casting invis on yourself will break charm on Live, so this is a legit fix.
|
Yeah I've known about it a while but there were other easier ways at the time to break it so I just sorta put it off. If someone else wants to do the work I can't reject that though.
|
The new window didn't quite fix the breakage problem, though I still greatly appreciate the new window. I tried dismissing my charmed mob, but it still held.
Thank you all! =) |
/pet get lost command has always worked 100%. The pet controls window wasnt implimented last I played a enchanter on Emu.
Was that way on live too, so theres never been a reason to use invisible to break charm. |
Also pets poof when you invis , I remember building some AAs, so this wouldn't happen.
EDIT:Well, anyways, it was like that when I played - made you want to get those AA's |
You're right, Angelox. That was the way it was early on, but sometime (around Luclin, I believe), there was a patch that made it so pets would not poof if you went invis. It was around the same time they changed the way NPCs viewed pets; indifferent unless they took an action, so a lost pet trying to find its master wouldn't bring a train.
|
I confirmed during the free time this summer on Live that casting any sort of invis spell on yourself will break the charm on any charmed pets you have.
|
Quote:
|
This code causes a zone crash when the player uses an invis spell and has no pet up. Here is the output:
Code:
#0 0x080fdc43 in Mob::BuffFadeByEffect(int, int) (this=0x0, effectid=22, |
Code:
void Mob::SetInvisible(bool state) |
All times are GMT -4. The time now is 11:19 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.