[8659] Restore less restcricted call format for Unit::AddThreat

Mostly for scripting use, core cases already fixed anyway.
This commit is contained in:
VladimirMangos 2009-10-17 12:38:18 +04:00
parent b258a17ba4
commit 9fd87a644b
3 changed files with 3 additions and 4 deletions

View file

@ -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())