Avoid client state transition for monsters

This commit is contained in:
maple
2026-06-07 23:42:05 +09:00
parent a9926feea3
commit 913b4f1721
2 changed files with 6 additions and 3 deletions

View File

@@ -507,8 +507,11 @@ if monster.TransformComponent ~= nil then
\tlocal scale = monster.TransformComponent.Scale
\tmonster.TransformComponent.Scale = Vector3(-math.abs(scale.x), math.abs(scale.y), scale.z)
end
if monster.StateComponent ~= nil then
\tmonster.StateComponent:ChangeState("IDLE")
if monster.StateAnimationComponent ~= nil and monster.SpriteRendererComponent ~= nil then
\tlocal stand = monster.StateAnimationComponent.ActionSheet["stand"]
\tif stand ~= nil and stand ~= "" then
\t\tmonster.SpriteRendererComponent.SpriteRUID = stand
\tend
end`, [{ Type: 'Entity', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'monster' }]),
method('Shuffle', `if list == nil then
\treturn