fix(Core/SmartScripts): Implemented new target type: SMART_TARGET_SUM… (#13880)
* fix(Core/SmartScripts): Implemented new target type: SMART_TARGET_SUMMONED_CREATURES. Fixes #13787 * Update. * Update.
This commit is contained in:
parent
ac65434f3f
commit
95652e14d5
6 changed files with 56 additions and 1 deletions
|
|
@ -413,6 +413,14 @@ bool SmartAIMgr::IsTargetValid(SmartScriptHolder const& e)
|
|||
return false;
|
||||
}
|
||||
break;
|
||||
case SMART_TARGET_SUMMONED_CREATURES:
|
||||
{
|
||||
if (e.target.summonedCreatures.entry && !IsCreatureValid(e, e.target.summonedCreatures.entry))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SMART_TARGET_HOSTILE_SECOND_AGGRO:
|
||||
case SMART_TARGET_HOSTILE_LAST_AGGRO:
|
||||
case SMART_TARGET_HOSTILE_RANDOM:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue