From a2c5f359d85d9ad8a9ffe846382295f645b3bf3b Mon Sep 17 00:00:00 2001 From: Paul Coene Date: Sat, 15 Aug 2015 20:14:15 -0400 Subject: [PATCH] Fix buffdurationpacket for seeinvis spells --- zone/spells.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zone/spells.cpp b/zone/spells.cpp index 1eb84ad9a..690cbf71f 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -5302,6 +5302,14 @@ void Client::SendBuffDurationPacket(Buffs_Struct &buff) int index = GetSpellEffectIndex(buff.spellid, SE_CurrentHP); sbf->effect = abs(spells[buff.spellid].base[index]); } + else if (IsEffectInSpell(buff.spellid, SE_SeeInvis)) + { + // Wish I knew what this sbf->effect field was trying to tell + // the client. 10 seems to not break SeeInvis spells. Level, + // which is what the old client sends breaks the client at at + // least level 9, maybe more. + sbf->effect = 10; + } else { // Default to what old code did until we find a better fix for