mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
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:
@@ -500,6 +500,9 @@ int32 SpellEffectInfo::CalcValue(Unit const* caster, int32 const* bp, Unit const
|
|||||||
break;
|
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)
|
if (canEffectScale)
|
||||||
{
|
{
|
||||||
CreatureTemplate const* cInfo = caster->ToCreature()->GetCreatureTemplate();
|
CreatureTemplate const* cInfo = caster->ToCreature()->GetCreatureTemplate();
|
||||||
|
|||||||
Reference in New Issue
Block a user