fix(Core/SmartScripts): Disallow Gob to use Combat with Zone (#3199)
* Proper fix for https://github.com/azerothcore/azerothcore-wotlk/issues/3028
This commit is contained in:
parent
e1bf183741
commit
39f2d13f66
1 changed files with 6 additions and 0 deletions
|
|
@ -1320,6 +1320,12 @@ 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