fix bard song mods on instant spells (nukes, procs)

This commit is contained in:
Michael Cook (mackal) 2016-08-08 15:22:26 -04:00
parent bdb083eac7
commit 051f9ffab9

View File

@ -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();