
{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.mech_o_kong_phase_1": {
			"states": {
				"default": {
					"transitions": [
                        { "spawn": "query.is_illager_captain" },
                        { "idle1": "!query.is_illager_captain && !query.has_target && query.modified_move_speed < 0.01" },
						{ "walkphase1": "!query.is_illager_captain && query.ground_speed > 0.01"},
						{ "attackphase1": "!query.is_illager_captain && query.is_delayed_attacking"}
					],
					"blend_transition": 0.2,
                    "blend_via_shortest_path": true
				},
				"spawn": {
					"transitions": [
						{
							"idle1": "!query.is_illager_captain"
						}
					],
					"animations": [
						"spawn"
					],
					"blend_transition": 0.3,
					"blend_via_shortest_path": true
				},
				//phase_1
                "idle1": {
					"transitions": [
						{ "walkphase1": "query.ground_speed > 0.01"},
						{ "attackphase1": "query.is_delayed_attacking"}
					],
					"animations": [
						"idle1"
					],
					"blend_transition": 0.2,
                    "blend_via_shortest_path": true
				},
				"walkphase1": {
					"transitions": [
						{ "idle1": "query.modified_move_speed < 0.01" },
						{ "attackphase1": "query.is_delayed_attacking"}
					],
					"animations": [
						"walkphase1"
					],
					"blend_transition": 0.2,
                    "blend_via_shortest_path": true
				},
				"attackphase1": {
					"transitions": [
						{
							"idle1": "query.any_animation_finished"
						}
					],
					"animations": [
						"attackphase1"
					],
					"blend_transition": 0.5,
                    "blend_via_shortest_path": true
				}
			}
		},
		"controller.animation.mech_o_kong_phase_2": {
			"states": {
				"default": {
					"transitions": [
                        { "specialattack1to2": "query.is_illager_captain" },
                        { "idle2": "!query.has_target && query.modified_move_speed < 0.01" },
						{ "walkphase2": "query.ground_speed > 0.01"},
						{ "attackphase2": "query.is_delayed_attacking"}
					]
				},
				"specialattack1to2": {
					"transitions": [
						{
							"idle2": "!query.is_illager_captain"
						}
					],
					"animations": [
						"specialattack1to2"
					]
				},
				//phase_1
                "idle2": {
					"transitions": [
						{ "walkphase2": "query.ground_speed > 0.01"},
						{ "attackphase2": "query.is_delayed_attacking"}
					],
					"animations": [
						"idle2"
					],
					"blend_transition": 0.2,
                    "blend_via_shortest_path": true
				},
				"walkphase2": {
					"transitions": [
						{ "idle2": "query.modified_move_speed < 0.01" },
						{ "attackphase2": "query.is_delayed_attacking"}
					],
					"animations": [
						"walkphase2"
					],
					"blend_transition": 0.2,
                    "blend_via_shortest_path": true
				},
				"attackphase2": {
					"transitions": [
						{
							"idle2": "query.any_animation_finished"
						}
					],
					"animations": [
						"attackphase1"
					],
					"blend_transition": 0.5,
                    "blend_via_shortest_path": true
				}
			}
		},
		"controller.animation.mech_o_kong_phase_3": {
			"states": {
				"default": {
					"transitions": [
                        { "specialattack2to3": "query.is_illager_captain" },
						{ "idle3": "!query.has_target && query.modified_move_speed < 0.01" },
						{ "walkphase3": "query.ground_speed > 0.01"},
						{ "attackphase3": "query.is_delayed_attacking"},
						{ "death":"query.is_chested"}
					]
				},
				"specialattack2to3": {
					"transitions": [
						{
							"idle3": "!query.is_illager_captain"
						}
					],
					"animations": [
						"specialattack2to3"
					],
					"blend_transition": 0.2,
                    "blend_via_shortest_path": true
				},
				//phase_1
				"idle3": {
					"transitions": [
						{ "walkphase3": "query.ground_speed > 0.01"},
						{ "attackphase3": "query.is_delayed_attacking"},
						{ "death":"query.is_chested"}
					],
					"animations": [
						"idle3"
					],
					"blend_transition": 0.2,
                    "blend_via_shortest_path": true
				},
				"walkphase3": {
					"transitions": [
						{ "attackphase3": "query.is_delayed_attacking"},
						{ "death":"query.is_chested"}
					],
					"animations": [
						"walkphase3"
					],
					"blend_transition": 0.2,
                    "blend_via_shortest_path": true
				},
				"attackphase3": {
					"transitions": [
						{
							"idle3": "query.any_animation_finished"
						},
						{ "death":"query.is_chested"}
					],
					"animations": [
						"attackphase1"
					],
					"blend_transition": 0.5,
                    "blend_via_shortest_path": true
				},
				"death": {
					"animations": [
						"death"
					],
					"blend_transition": 0.2,
                    "blend_via_shortest_path": true
				}
			}
		}
	}
}