Merge pull request #1009 from noudess/patch-13

Hack to fix RoF2 perma IVU/IVA bug after zoning.
This commit is contained in:
Chris Miles 2020-04-03 03:22:50 -05:00 committed by GitHub
commit 80d1601754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!");
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;