mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
[Bug Fix] Bard Caster Level Fixes (#3883)
Bards do not gain benefits from spells like Intellectual Superiority
This commit is contained in:
parent
0c3149a6e5
commit
e52e4d5b3f
@ -6347,7 +6347,12 @@ bool Mob::UseBardSpellLogic(uint16 spell_id, int slot)
|
|||||||
|
|
||||||
int Mob::GetCasterLevel(uint16 spell_id) {
|
int Mob::GetCasterLevel(uint16 spell_id) {
|
||||||
int level = GetLevel();
|
int level = GetLevel();
|
||||||
|
if (GetClass() == Class::Bard) {
|
||||||
|
// Bards receive effective casting level increases to resists/effect. They don't receive benefit from spells like intellectual superiority, however.
|
||||||
|
level += itembonuses.effective_casting_level + aabonuses.effective_casting_level;
|
||||||
|
} else {
|
||||||
level += itembonuses.effective_casting_level + spellbonuses.effective_casting_level + aabonuses.effective_casting_level;
|
level += itembonuses.effective_casting_level + spellbonuses.effective_casting_level + aabonuses.effective_casting_level;
|
||||||
|
}
|
||||||
LogSpells("Determined effective casting level [{}]+[{}]+[{}]=[{}]", GetLevel(), spellbonuses.effective_casting_level, itembonuses.effective_casting_level, level);
|
LogSpells("Determined effective casting level [{}]+[{}]+[{}]=[{}]", GetLevel(), spellbonuses.effective_casting_level, itembonuses.effective_casting_level, level);
|
||||||
return std::max(1, level);
|
return std::max(1, level);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user