mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10475] Implement SPELL_AURA_HEAL_ABSORB (301)
Used for example in spells 66237 and 70659. Also rename CalculateAbsorbAndResist -> CalculateDamageAbsorbAndResist
This commit is contained in:
parent
ae53d49352
commit
84a915e1b1
9 changed files with 112 additions and 28 deletions
|
|
@ -3733,7 +3733,7 @@ bool ChatHandler::HandleDamageCommand(char* args)
|
|||
uint32 absorb = 0;
|
||||
uint32 resist = 0;
|
||||
|
||||
target->CalculateAbsorbAndResist(m_session->GetPlayer(),schoolmask, SPELL_DIRECT_DAMAGE, damage, &absorb, &resist);
|
||||
target->CalculateDamageAbsorbAndResist(m_session->GetPlayer(),schoolmask, SPELL_DIRECT_DAMAGE, damage, &absorb, &resist);
|
||||
|
||||
if (damage <= absorb + resist)
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue