mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 07:02:35 +00:00
Hack to fix RoF2 perma IVU/IVA bug after zoning.
This fixes the problem, but I believe someone with better knowledge of the client than I can find a more "correct" solution. Posted as a PR per @joligario to solve it for now. Was also asked to put SE_Invisibility in there so that this "hack" is a catch all.
This commit is contained in:
parent
3a7908b1de
commit
6fb6d8891d
@ -4017,6 +4017,14 @@ void Client::Handle_OP_CastSpell(const EQApplicationPacket *app)
|
|||||||
//Message(Chat::Red, "You cant cast right now, you arent in control of yourself!");
|
//Message(Chat::Red, "You cant cast right now, you arent in control of yourself!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hack for broken RoF2 which allows casting after a zoned IVU/IVA
|
||||||
|
if (invisible_undead || invisible_animals) {
|
||||||
|
BuffFadeByEffect(SE_InvisVsAnimals);
|
||||||
|
BuffFadeByEffect(SE_InvisVsUndead);
|
||||||
|
BuffFadeByEffect(SE_InvisVsUndead2);
|
||||||
|
BuffFadeByEffect(SE_Invisibility); // Included per JJ for completeness - client handles this one atm
|
||||||
|
}
|
||||||
|
|
||||||
CastSpell_Struct* castspell = (CastSpell_Struct*)app->pBuffer;
|
CastSpell_Struct* castspell = (CastSpell_Struct*)app->pBuffer;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user