*Fix a bug in ScriptedAI::SelectUnitList.
--HG-- branch : trunk
This commit is contained in:
@@ -432,7 +432,7 @@ void ScriptedAI::SelectUnitList(std::list<Unit*> &targetList, uint32 num, Select
|
|||||||
std::list<HostilReference*> m_threatlist = m_creature->getThreatManager().getThreatList();
|
std::list<HostilReference*> m_threatlist = m_creature->getThreatManager().getThreatList();
|
||||||
std::list<HostilReference*>::iterator i;
|
std::list<HostilReference*>::iterator i;
|
||||||
Unit *target;
|
Unit *target;
|
||||||
while(m_threatlist.size())
|
while(m_threatlist.size() && num)
|
||||||
{
|
{
|
||||||
if(targetType == SELECT_TARGET_BOTTOMAGGRO)
|
if(targetType == SELECT_TARGET_BOTTOMAGGRO)
|
||||||
{
|
{
|
||||||
@@ -455,6 +455,7 @@ void ScriptedAI::SelectUnitList(std::list<Unit*> &targetList, uint32 num, Select
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
targetList.push_back(target);
|
targetList.push_back(target);
|
||||||
|
--num;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2159,7 +2159,6 @@ void SpellMgr::LoadSpellCustomAttr()
|
|||||||
case 37790: //Spread Shot
|
case 37790: //Spread Shot
|
||||||
case 46771: //Flame Sear
|
case 46771: //Flame Sear
|
||||||
case 45248: //Shadow Blades
|
case 45248: //Shadow Blades
|
||||||
case 39835: //Needle Spine
|
|
||||||
spellInfo->MaxAffectedTargets = 3;
|
spellInfo->MaxAffectedTargets = 3;
|
||||||
break;
|
break;
|
||||||
case 38310: //Multi-Shot
|
case 38310: //Multi-Shot
|
||||||
|
|||||||
Reference in New Issue
Block a user