Scripts/SmartAI: SetData now has an invoker (if the setting is done b…

…y something using SmartAI).

Also, some refactors.
This commit is contained in:
Aokromes committed 2018-09-03 14:25:57 +02:00
1 parent dda4a2f8d7
commit 48dd914478
5 files changed
+54 -24

No files matched your search

@@ -462,6 +462,7 @@ SmartScriptHolder& SmartAIMgr::FindLinkedEvent(SmartAIEventList& list, uint32 li
case SMART_EVENT_IS_BEHIND_TARGET:
case SMART_EVENT_INSTANCE_PLAYER_ENTER:
case SMART_EVENT_TRANSPORT_ADDCREATURE:
case SMART_EVENT_DATA_SET:
return true;
default:
return false;