mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-21 13:42:24 +00:00
fix bard song mods on instant spells (nukes, procs)
This commit is contained in:
parent
bdb083eac7
commit
051f9ffab9
@ -201,7 +201,9 @@ bool Mob::SpellEffect(Mob* caster, uint16 spell_id, float partial, int level_ove
|
||||
continue;
|
||||
|
||||
effect = spell.effectid[i];
|
||||
effect_value = CalcSpellEffectValue(spell_id, i, caster_level, buffslot > -1 ? buffs[buffslot].instrument_mod : 10, caster ? caster : this);
|
||||
// if buff slot, use instrument mod there, otherwise calc it
|
||||
uint32 inst = buffslot > -1 ? buffs[buffslot].instrument_mod : caster ? caster->GetInstrumentMod(spell_id) : 10;
|
||||
effect_value = CalcSpellEffectValue(spell_id, i, caster_level, inst, caster ? caster : this);
|
||||
|
||||
if(spell_id == SPELL_LAY_ON_HANDS && caster && caster->GetAA(aaImprovedLayOnHands))
|
||||
effect_value = GetMaxHP();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user