Core/Auras: Implemented SPELL_AURA_MOD_PERIODIC_DAMAGE_TAKEN

Port From (https://github.com/TrinityCore/TrinityCore/commit/4ee565b2c85a442069ee7a611378f30f066de873)
This commit is contained in:
hondacrx
2021-02-22 15:10:45 -05:00
parent 7ae358bd71
commit 762090efb1
3 changed files with 9 additions and 3 deletions
+3
View File
@@ -306,6 +306,9 @@ namespace Game.Entities
return aurEff.GetCasterGUID() == caster.GetGUID() && aurEff.IsAffectingSpell(spellProto);
});
if (damagetype == DamageEffectType.DOT)
TakenTotalMod *= GetTotalAuraMultiplier(AuraType.ModPeriodicDamageTaken, aurEff => (aurEff.GetMiscValue() & (uint)spellProto.GetSchoolMask()) != 0);
int TakenAdvertisedBenefit = SpellBaseDamageBonusTaken(spellProto.GetSchoolMask());
// Check for table values