From e1255af708a9c3fb85bed3c3549265ac31ef0cb7 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 14 Nov 2013 20:26:58 -0500 Subject: [PATCH] Fix Spell level restrictions I made an incorrect assumption, fixed now --- zone/spells.cpp | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index 68997eec3..ee9164df9 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -2724,20 +2724,15 @@ bool Client::CheckSpellLevelRestriction(uint16 spell_id) { int SpellLevel = GetMinLevel(spell_id); - // Only check for beneficial buffs, if it's a bard song, only if it's short duration - if(IsBuffSpell(spell_id) && IsBeneficialSpell(spell_id) && - !(IsBardSong(spell_id) && !IsShortDurationBuff(spell_id))) - { - if(SpellLevel > 65) - { - if(IsGroupSpell(spell_id) && GetLevel() < 62) + // Only check for beneficial buffs + if (IsBuffSpell(spell_id) && IsBeneficialSpell(spell_id)) { + if (SpellLevel > 65) { + if (IsGroupSpell(spell_id) && GetLevel() < 62) return false; - else if(GetLevel() < 61) + else if (GetLevel() < 61) return false; - } - else if(SpellLevel > 50) // 51-65 - { - if(GetLevel() < (SpellLevel/2+15)) + } else if (SpellLevel > 50) { // 51-56 + if (GetLevel() < (SpellLevel/2+15)) return false; } }