Fix Spell level restrictions

I made an incorrect assumption, fixed now
This commit is contained in:
Michael Cook (mackal) 2013-11-14 20:26:58 -05:00
parent 23ab896dfc
commit e1255af708

View File

@ -2724,19 +2724,14 @@ bool Client::CheckSpellLevelRestriction(uint16 spell_id)
{ {
int SpellLevel = GetMinLevel(spell_id); int SpellLevel = GetMinLevel(spell_id);
// Only check for beneficial buffs, if it's a bard song, only if it's short duration // Only check for beneficial buffs
if(IsBuffSpell(spell_id) && IsBeneficialSpell(spell_id) && if (IsBuffSpell(spell_id) && IsBeneficialSpell(spell_id)) {
!(IsBardSong(spell_id) && !IsShortDurationBuff(spell_id))) if (SpellLevel > 65) {
{
if(SpellLevel > 65)
{
if (IsGroupSpell(spell_id) && GetLevel() < 62) if (IsGroupSpell(spell_id) && GetLevel() < 62)
return false; return false;
else if (GetLevel() < 61) else if (GetLevel() < 61)
return false; return false;
} } else if (SpellLevel > 50) { // 51-56
else if(SpellLevel > 50) // 51-65
{
if (GetLevel() < (SpellLevel/2+15)) if (GetLevel() < (SpellLevel/2+15))
return false; return false;
} }