Core/Auras: Implement SPELL_AURA_MOD_MELEE_DAMAGE_FROM_CASTER (343)

Port From (https://github.com/TrinityCore/TrinityCore/commit/9cc3cd128cf931141f6b806a33e1a715274b84e7)
This commit is contained in:
hondacrx
2022-02-17 10:03:54 -05:00
parent 3484687b91
commit 9db44e3a21
+7
View File
@@ -3787,6 +3787,13 @@ namespace Game.Entities
if (damagetype == DamageEffectType.DOT)
TakenTotalMod *= GetTotalAuraMultiplier(AuraType.ModPeriodicDamageTaken, aurEff => (aurEff.GetMiscValue() & (uint)spellProto.GetSchoolMask()) != 0);
}
else // melee attack
{
TakenTotalMod *= GetTotalAuraMultiplier(AuraType.ModMeleeDamageFromCaster, aurEff =>
{
return aurEff.GetCasterGUID() == attacker.GetGUID();
});
}
AuraEffect cheatDeath = GetAuraEffect(45182, 0);
if (cheatDeath != null)