mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9784] Move damage and crit calculation for certain effects of spells with delayed hit to spell launch
This commit is contained in:
parent
8ec81caabf
commit
10b65dcf8f
7 changed files with 128 additions and 22 deletions
|
|
@ -7478,6 +7478,8 @@ void Aura::PeriodicTick()
|
|||
SpellNonMeleeDamage damageInfo(pCaster, m_target, spellProto->Id, spellProto->SchoolMask);
|
||||
pCaster->CalculateSpellDamage(&damageInfo, gain, spellProto);
|
||||
|
||||
damageInfo.target->CalculateAbsorbResistBlock(pCaster, &damageInfo, spellProto);
|
||||
|
||||
pCaster->DealDamageMods(damageInfo.target, damageInfo.damage, &damageInfo.absorb);
|
||||
|
||||
pCaster->SendSpellNonMeleeDamageLog(&damageInfo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue