mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 13:39:46 -04:00
Core/SmartAI: Add check to SMART_ACTION_PLAY_ANIMKIT to allow zero value to remove animKit.
By Malcrom
This commit is contained in:
@@ -824,7 +824,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
|
||||
return false;
|
||||
break;
|
||||
case SMART_ACTION_PLAY_ANIMKIT:
|
||||
if (!IsAnimKitValid(e, e.action.animKit.animKit))
|
||||
if (e.action.animKit.animKit && !IsAnimKitValid(e, e.action.animKit.animKit))
|
||||
return false;
|
||||
|
||||
if (e.action.animKit.type > 3)
|
||||
|
||||
Reference in New Issue
Block a user