diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c6bf862e6..be1bc79b6 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -10209,7 +10209,7 @@ float Unit::ApplyTotalThreatModifier(float threat, SpellSchoolMask schoolMask) //====================================================================== -void Unit::AddThreat(Unit* pVictim, float threat, bool crit, SpellSchoolMask schoolMask, SpellEntry const *threatSpell /*= NULL*/) +void Unit::AddThreat(Unit* pVictim, float threat /*= 0.0f*/, bool crit /*= false*/, SpellSchoolMask schoolMask /*= SPELL_SCHOOL_MASK_NONE*/, SpellEntry const *threatSpell /*= NULL*/) { // Only mobs can manage threat lists if(CanHaveThreatList()) diff --git a/src/game/Unit.h b/src/game/Unit.h index 490875d1a..4725b4a84 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -1336,8 +1336,7 @@ class MANGOS_DLL_SPEC Unit : public WorldObject // Threat related methods bool CanHaveThreatList() const; - void AddThreat(Unit* pVictim, float threat, bool crit, SpellSchoolMask schoolMask, SpellEntry const *threatSpell = NULL); - void AddThreat(Unit* pVictim) { AddThreat(pVictim, 0.0f, false, SPELL_SCHOOL_MASK_NORMAL, NULL); } + void AddThreat(Unit* pVictim, float threat = 0.0f, bool crit = false, SpellSchoolMask schoolMask = SPELL_SCHOOL_MASK_NONE, SpellEntry const *threatSpell = NULL); float ApplyTotalThreatModifier(float threat, SpellSchoolMask schoolMask = SPELL_SCHOOL_MASK_NORMAL); void DeleteThreatList(); bool SelectHostileTarget(); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8b4a55c34..5eabe001a 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8658" + #define REVISION_NR "8659" #endif // __REVISION_NR_H__