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:
@@ -3787,6 +3787,13 @@ namespace Game.Entities
|
|||||||
if (damagetype == DamageEffectType.DOT)
|
if (damagetype == DamageEffectType.DOT)
|
||||||
TakenTotalMod *= GetTotalAuraMultiplier(AuraType.ModPeriodicDamageTaken, aurEff => (aurEff.GetMiscValue() & (uint)spellProto.GetSchoolMask()) != 0);
|
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);
|
AuraEffect cheatDeath = GetAuraEffect(45182, 0);
|
||||||
if (cheatDeath != null)
|
if (cheatDeath != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user