mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 07:37:05 +00:00
[c12546] Fix usage of SpellEquippedItems and SPELL_AURA_MOD_DAMAGE_DONE & SPELL_AURA_MOD_DAMAGE_PERCENT_DONE auras as a result
This commit is contained in:
parent
6b58a8674d
commit
d4f3fed660
5 changed files with 514 additions and 229 deletions
|
|
@ -6508,7 +6508,7 @@ void Aura::HandleModDamageDone(bool apply, bool Real)
|
|||
if((m_modifier.m_miscvalue & SPELL_SCHOOL_MASK_NORMAL) != 0)
|
||||
{
|
||||
// apply generic physical damage bonuses including wand case
|
||||
if (equippedItems && (equippedItems->EquippedItemClass == -1 || target->GetTypeId() != TYPEID_PLAYER))
|
||||
if (!equippedItems || equippedItems->EquippedItemClass == -1 || target->GetTypeId() != TYPEID_PLAYER)
|
||||
{
|
||||
target->HandleStatModifier(UNIT_MOD_DAMAGE_MAINHAND, TOTAL_VALUE, float(m_modifier.m_amount), apply);
|
||||
target->HandleStatModifier(UNIT_MOD_DAMAGE_OFFHAND, TOTAL_VALUE, float(m_modifier.m_amount), apply);
|
||||
|
|
@ -6594,7 +6594,7 @@ void Aura::HandleModDamagePercentDone(bool apply, bool Real)
|
|||
if((m_modifier.m_miscvalue & SPELL_SCHOOL_MASK_NORMAL) != 0)
|
||||
{
|
||||
// apply generic physical damage bonuses including wand case
|
||||
if (equippedItems && (equippedItems->EquippedItemClass == -1 || target->GetTypeId() != TYPEID_PLAYER))
|
||||
if (!equippedItems || equippedItems->EquippedItemClass == -1 || target->GetTypeId() != TYPEID_PLAYER)
|
||||
{
|
||||
target->HandleStatModifier(UNIT_MOD_DAMAGE_MAINHAND, TOTAL_PCT, float(m_modifier.m_amount), apply);
|
||||
target->HandleStatModifier(UNIT_MOD_DAMAGE_OFFHAND, TOTAL_PCT, float(m_modifier.m_amount), apply);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue