mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Misc: added loading error message for SCRIPT_COMMAND_PLAY_ANIMKIT
SMSG_PLAY_ONE_SHOT_ANIM_KIT can now be used in waypoint_scripts
This commit is contained in:
@@ -894,6 +894,12 @@ void Map::ScriptsProcess()
|
||||
}
|
||||
break;
|
||||
|
||||
case SCRIPT_COMMAND_PLAY_ANIMKIT:
|
||||
// Source must be Creature.
|
||||
if (Creature* cSource = _GetScriptCreature(source, true, step.script))
|
||||
cSource->PlayOneShotAnimKit(step.script->PlayAnimKit.AnimKitID);
|
||||
break;
|
||||
|
||||
default:
|
||||
TC_LOG_ERROR("scripts", "Unknown script command %s.", step.script->GetDebugInfo().c_str());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user