fix(Core/SpellInfo): Disallow damage scaling trigger spells to get scaled twice. (#19605)
* Init. * Deleted the wrong one. * Add double scaling check. * Whitespace.
This commit is contained in:
parent
14a7840578
commit
35b551c0da
1 changed files with 3 additions and 0 deletions
|
|
@ -500,6 +500,9 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster, int32 const* bp, Unit const
|
|||
break;
|
||||
}
|
||||
|
||||
if ((sSpellMgr->GetSpellInfo(_spellInfo->Effects[_effIndex].TriggerSpell) && sSpellMgr->GetSpellInfo(_spellInfo->Effects[_effIndex].TriggerSpell)->HasAttribute(SPELL_ATTR0_SCALES_WITH_CREATURE_LEVEL)) && _spellInfo->HasAttribute(SPELL_ATTR0_SCALES_WITH_CREATURE_LEVEL))
|
||||
canEffectScale = false;
|
||||
|
||||
if (canEffectScale)
|
||||
{
|
||||
CreatureTemplate const* cInfo = caster->ToCreature()->GetCreatureTemplate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue