Skip to content

Commit

Permalink
[10049] Fix SPELL_AURA_MOD_HEALING_DONE healing bonus with 0 misc value
Browse files Browse the repository at this point in the history
Signed-off-by: Laise <fenrisse@gmail.com>
  • Loading branch information
virusav authored and Laise committed Jun 10, 2010
1 parent d40b74a commit c98687f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/Unit.cpp
Expand Up @@ -9767,7 +9767,7 @@ int32 Unit::SpellBaseHealingBonusDone(SpellSchoolMask schoolMask)

AuraList const& mHealingDone = GetAurasByType(SPELL_AURA_MOD_HEALING_DONE);
for(AuraList::const_iterator i = mHealingDone.begin();i != mHealingDone.end(); ++i)
if(((*i)->GetModifier()->m_miscvalue & schoolMask) != 0)
if(!(*i)->GetModifier()->m_miscvalue || ((*i)->GetModifier()->m_miscvalue & schoolMask) != 0)
AdvertisedBenefit += (*i)->GetModifier()->m_amount;

// Healing bonus of spirit, intellect and strength
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10048"
#define REVISION_NR "10049"
#endif // __REVISION_NR_H__

0 comments on commit c98687f

Please sign in to comment.