feat(Core/SmartAI): Implement castFlag THREATLIST_NOT_SINGLE (#16911)
* init * Update SmartScript.cpp
This commit is contained in:
parent
467ee93f5b
commit
0276b141a8
2 changed files with 6 additions and 1 deletions
|
|
@ -606,6 +606,10 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
|||
me->InterruptNonMeleeSpells(false);
|
||||
}
|
||||
|
||||
if (e.action.cast.castFlags & SMARTCAST_THREATLIST_NOT_SINGLE)
|
||||
if (me->GetThreatMgr().GetThreatListSize() <= 1)
|
||||
break;
|
||||
|
||||
TriggerCastFlags triggerFlags = TRIGGERED_NONE;
|
||||
if (e.action.cast.castFlags & SMARTCAST_TRIGGERED)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue