mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 20:51:29 +00:00
Fix Spell level restrictions
I made an incorrect assumption, fixed now
This commit is contained in:
parent
23ab896dfc
commit
e1255af708
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user