mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-19 12:21:34 +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);
|
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 (IsGroupSpell(spell_id) && GetLevel() < 62)
|
||||||
if(SpellLevel > 65)
|
|
||||||
{
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user