fix(DB/SmartScriptMgr): Move CWZ valid check (#3206)
This commit is contained in:
parent
78e2e551e5
commit
c79a475708
2 changed files with 9 additions and 7 deletions
|
|
@ -1320,12 +1320,6 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
|||
}
|
||||
case SMART_ACTION_SET_IN_COMBAT_WITH_ZONE:
|
||||
{
|
||||
if (mScriptType == SMART_SCRIPT_TYPE_GAMEOBJECT)
|
||||
{
|
||||
sLog->outErrorDb("SMART_ACTION_SET_IN_COMBAT_WITH_ZONE (38) is not allowed with SMART_SCRIPT_TYPE_GAMEOBJECT (1), skipped.");
|
||||
break;
|
||||
}
|
||||
|
||||
ObjectList* targets = GetTargets(e, unit);
|
||||
if (!targets)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue