fix(Core/QAston): fixed shields oneshotting (#13271)

* fix(Core/QAston): fixed shields oneshotting

* fix build
This commit is contained in:
Angelo Venturini
2022-10-04 14:37:48 -03:00
committed by GitHub
parent a818bcf3e2
commit e05f61d1b3
4 changed files with 57 additions and 40 deletions

View File

@@ -311,6 +311,7 @@ void Spell::EffectEnvironmentalDMG(SpellEffIndex /*effIndex*/)
else
{
DamageInfo dmgInfo(m_caster, unitTarget, damage, m_spellInfo, m_spellInfo->GetSchoolMask(), SPELL_DIRECT_DAMAGE, BASE_ATTACK);
m_caster->CalcAbsorbResist(dmgInfo);
uint32 absorb = dmgInfo.GetAbsorb();
uint32 resist = dmgInfo.GetResist();