File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,15 @@ export function validateAction(
6
6
action : CopilotDocV1 . Action ,
7
7
setError : UseFormSetError < CopilotDocV1 . Action > ,
8
8
) {
9
- if ( action . type === 'Skill' || action . type === 'Retreat' ) {
9
+ if (
10
+ action . type === 'Skill' ||
11
+ action . type === 'Retreat' ||
12
+ action . type === 'BulletTime'
13
+ ) {
10
14
if ( ! action . name && ! action . location ) {
11
15
const error = {
12
16
type : 'required' ,
13
- message : '类型为技能或撤退时 ,必须填写名称或位置其中一个' ,
17
+ message : '类型为技能、撤退或子弹时间时 ,必须填写名称或位置其中一个' ,
14
18
}
15
19
setError ( 'name' , error )
16
20
setError ( 'location' , error )
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export namespace CopilotDocV1 {
67
67
}
68
68
69
69
export interface ActionUtil extends ActionBase {
70
- type : Type . SpeedUp | Type . BulletTime | Type . Output | Type . SkillDaemon
70
+ type : Type . SpeedUp | Type . Output | Type . SkillDaemon
71
71
}
72
72
73
73
export interface ActionMoveCamera extends ActionBase {
You can’t perform that action at this time.
0 commit comments