-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathp8s.js
1015 lines (944 loc) · 52.1 KB
/
p8s.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const 死刑范围 = true;
const 辣翅辣尾范围 = true;
const 双龙凤冲范围 = true;
const 地板火范围 = true;
const 炎蛇群翔范围 = true;
const 延时核爆范围=true;
const 普通核爆范围=true;
const 足球核爆范围=true;
const 兽变身自动防击退 = true;
const 蛇变身钢铁作图 = true;
const 蛇石化背对 = true;
const 石眼范围=true;
const 石眼范围仅显示自己=true;
const 蛇毒范围=true;
const 蛇毒范围仅显示自己=true;
const 第二次蛇直线AOE范围=true;
const 人形态2诱导范围=true;
//位置带单引号 MT ST H1 H2 D1 D2 D3 D4
const 位置 = 'MT';
const 足球东西击退辅助 = true;
const 足球南北击退辅助 = true;
const 足球第四下辅助 = true;
const 火圈范围 = true;
const aoeport = 9588; //aoe监听的端口
function postAoe(data) {
fetch(`http://127.0.0.1:${aoeport}/Add`, {
method: "POST",
mode: "no-cors",
headers: { "Content-Type": "application/json" },
body: data
});
}
const sendCommand = (command) => {
callOverlayHandler({ call: 'PostNamazu', c: 'command', p: `${command}` });
}
const centerX = 100;
const centerY = 100;
const positionTo8Dir = (combatant) => {
const x = combatant.PosX - centerX;
const y = combatant.PosY - centerY;
// Dirs: N = 0, NE = 1, ..., NW = 7
return Math.round(4 - 4 * Math.atan2(x, y) / Math.PI) % 8;
};
const headingTo8Dir = (heading) => {
// Dirs: N = 0, NE = 1, ..., NW = 7
return (2 - Math.round(heading * 8 / Math.PI) / 2 + 2) % 8;
};
const arcaneChannelFlags = '00020001'; // mapEffect flags for tower tile effect
Options.Triggers.push({
zoneId: ZoneId.AbyssosTheEighthCircleSavage,
// zoneId: 979,
initData: () => {
return {
足球计数:0,
足球分摊: '',
足球击退大圈: [],
足球开始位置:'',
足球击退大圈位置: [],
火圈单位:[],
存储核爆:'',
强化阶段:false,
};
},
triggers: [
// ---------------- Part 1 ----------------
{id: 'P8S 门神 地板火',
type: 'StartsUsing',
netRegex: { id: '7927' },
run: async (data, matches) => {
if (!地板火范围) return;
let result = await callOverlayHandler({
call: 'getCombatants',
ids: [parseInt(matches.sourceId, 16)],
});
let posX = result.combatants[0].PosX;
let posY = result.combatants[0].PosY - 5;
postAoe(`{"Name":"门神地火","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":${posX},"Y":0,"Z":${posY}},"Length":10,"Width":10,"Rotation":0.0,"Color":1442840320,"Delay":0,"During":10}`);
},
},
{//龙凤冲,需要确定和地板的相对时间,7910龙,7911凤
id: 'P8S 门神 单龙凤冲',
type: 'StartsUsing',
netRegex: { id: '791[01]' },
run: async (data, matches) => {
if (!辣翅辣尾范围) return;
if (matches.id === '7910') {
//龙
postAoe(`{"Name":"单龙冲","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":80.0},"Length":40,"Width":14,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":8}`);
}
else {
//凤
postAoe(`{"Name":"单凤冲","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":86.5,"Y":0,"Z":80},"Length":40,"Width":13,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":8}`);
postAoe(`{"Name":"单凤冲","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":113.5,"Y":0,"Z":80},"Length":40,"Width":13,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":8}`);
}
},
},
{id: 'P8S 门神 双龙凤冲',
type: 'StartsUsing',
netRegex: { id: '795[01]' },
run: async (data, matches) => {
if (!双龙凤冲范围) return;
let result = await callOverlayHandler({
call: 'getCombatants',
ids: [parseInt(matches.sourceId, 16)],
});
let posX = result.combatants[0].PosX;
if (matches.id === '7950') {
//龙
if (Math.abs(posX - 100) > 2) {
//侧
postAoe(`{"Name":"龙凤冲 东西龙","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":80,"Y":0,"Z":100.0},"Length":40,"Width":14,"Rotation":-90.0,"Color":1073807359,"Delay":0,"During":8}`);
} else {
//前后
postAoe(`{"Name":"龙凤冲 南北龙","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":80},"Length":40,"Width":14,"Rotation":0,"Color":1073807359,"Delay":0,"During":8}`);
}
}
else {
//凤
if (Math.abs(posX - 100) > 2) {
//侧
postAoe(`{"Name":"龙凤冲 东西凤","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":80,"Y":0,"Z":86.5},"Length":40,"Width":13,"Rotation":-90,"Color":1073807359,"Delay":0,"During":8}`);
postAoe(`{"Name":"龙凤冲 东西凤","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":80,"Y":0,"Z":113.5},"Length":40,"Width":13,"Rotation":-90,"Color":1073807359,"Delay":0,"During":8}`);
} else {
//前后
postAoe(`{"Name":"龙凤冲 南北凤","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":86.5,"Y":0,"Z":80.0},"Length":40,"Width":13,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":8}`);
postAoe(`{"Name":"龙凤冲 南北凤","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":113.5,"Y":0,"Z":80.0},"Length":40,"Width":13,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":8}`);
}
}
},
},
{id: 'P8S 普通核爆范围',
type: 'StartsUsing',
netRegex: { id: ['791D','791E']},
run: (data, matches) => {
if (!延时核爆范围) return;
if (matches.id === '791E') {
data.party.roleToPartyNames_['dps'].forEach(name => {
postAoe(`{"Name":"四分核爆","AoeType":"Circle","CentreType":"ActorName","CentreValue":"${name}","Radius":3,"Color":503381760,"Delay":0,"During":8}`);
});
}
if (matches.id === '791D') {
data.party.partyIds_.forEach(pid => {
postAoe(`{"Name":"八分核爆","AoeType":"Circle","CentreType":"ActorId","CentreValue":0x${pid},"Radius":6,"Color":503382015,"Delay":0,"During":8}`);
});
}
},
},
{id: 'P8S 门神 延时核爆范围',
type: 'StartsUsing',
netRegex: { id: '791[01]' },
run: async (data, matches) => {
if (!延时核爆范围) return;
if (data.存储核爆==='7915') {
data.party.roleToPartyNames_['dps'].forEach(name => {
postAoe(`{"Name":"四分核爆之念","AoeType":"Circle","CentreType":"ActorName","CentreValue":"${name}","Radius":3,"Color":503381760,"Delay":0,"During":8}`);
});
}
if (data.存储核爆==='7914') {
data.party.partyIds_.forEach( pid => {
postAoe(`{"Name":"八分核爆之念","AoeType":"Circle","CentreType":"ActorId","CentreValue":0x${pid},"Radius":6,"Color":503382015,"Delay":0,"During":8}`);
});
}
},
},
{id: 'P8S 门神 死刑第一下',
type: 'StartsUsing',
netRegex: { id: '7945' },
run: (data, matches) => {
if (死刑范围) {
postAoe(`{"Name":"门神 死刑第一下","AoeType":"Rect","CentreType":"ActorId","CentreValue":0x${matches.sourceId},"TrackType":"IdTrack","TrackValue":0x${matches.targetId},"Length":40,"Width":5,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":5}`);
}
},
},
{id: 'P8S 门神 死刑第二下',
type: 'Ability',
netRegex: { id: '7945' },
run: async (data, matches) => {
if (!死刑范围) return;
let result = await callOverlayHandler({
call: 'getCombatants',
ids: [parseInt(matches.sourceId, 16)],
});
let tid = result.combatants[0].TargetID;
postAoe(`{"Name":"神 死刑第二下","AoeType":"Rect","CentreType":"ActorId","CentreValue":0x${matches.sourceId},"TrackType":"IdTrack","TrackValue":${tid},"Length":40,"Width":5,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":3.5}`);
},
},
{id: 'P8S 延时核爆收集器',
type: 'StartsUsing',
// 7915 normally
// 7916 during Blazing Footfalls
netRegex: { id: ['7915','7914']},
run: (data, matches) => {
data.存储核爆=matches.id;
},
},
{id: 'P8S 门神 兽变身防击退',
type: 'Ability',
// There is 6.4 seconds between this Reforged Reflection ability and the Footprint (7109) ability.
netRegex: { id: '794B', capture: false },
delaySeconds: 1.5,
run: (data, matches) => {
if (!兽变身自动防击退) return;
sendCommand('/ac 亲疏自行');
sendCommand('/ac 沉稳咏唱');
setTimeout(() => {
sendCommand('/ac 亲疏自行');
sendCommand('/ac 沉稳咏唱');
}, 200);
setTimeout(() => {
sendCommand('/ac 亲疏自行');
sendCommand('/ac 沉稳咏唱');
}, 400);
setTimeout(() => {
sendCommand('/ac 亲疏自行');
sendCommand('/ac 沉稳咏唱');
}, 600);
setTimeout(() => {
sendCommand('/ac 亲疏自行');
sendCommand('/ac 沉稳咏唱');
}, 800);
},
},
{id: 'P8S 门神 蛇变身钢铁',
type: 'StartsUsing',
// This is the Reforged Reflection cast.
netRegex: { id: '794C' },
run: (data, matches) => {
if (!蛇变身钢铁作图) return;
postAoe(`{"Name":"变蛇钢铁","AoeType":"Circle","CentreType":"ActorId","CentreValue":0x${matches.sourceId},"Radius":10,"Color":1073807359,"Delay":0,"During":10}`);
},
},
{id: 'P8S 门神 炎蛇群翔',
type: 'StartsUsing',
// During clones.
netRegex: { id: '791F' },
run: async (data, matches) => {
if (!炎蛇群翔范围) return;
data.party.partyIds_.forEach(pid => {
postAoe(`{"Name":"Rect Example","AoeType":"Rect","CentreType":"ActorId","CentreValue":0x${matches.sourceId},"TrackType":"IdTrack","TrackValue":0x${pid},"Length":40,"Width":5,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":6}`);
});
},
},
{id: 'P8S 蛇石化背对',
type: 'StartsUsing',
// We could call the very first one out immediately on the Added Combatant line,
// but then we'd have to duplicate this.
netRegex: { id: '792B' },
run: async (data, matches) => {
if (!蛇石化背对) return;
postAoe(`{"Name":"Back Example","AoeType":"Back","CentreType":"ActorId","CentreValue":0x${matches.sourceId},"SeeAngle":95,"Thikness":5,"Color":4294901964,"CorrectColor":4278255360,"Delay":0,"During":8.5}`);
},
},
{id: 'P8S 强化蛇体积',
type: 'StartsUsing',
// We could call the very first one out immediately on the Added Combatant line,
// but then we'd have to duplicate this.
netRegex: { id: '792B' },
run: async (data, matches) => {
if (!data.强化阶段) return;
postAoe(`{"Name":"强化射体积","AoeType":"Circle","CentreType":"ActorId","CentreValue":0x${matches.sourceId},"Radius":0.5,"Color":1694433510,"Delay":0,"During":25}`);
},
},
{id: 'P8S 蛇石化 可移动提示',
type: 'StartsUsing',
// We could call the very first one out immediately on the Added Combatant line,
// but then we'd have to duplicate this.
netRegex: { id: '792B' },
suppressSeconds:1,
delaySeconds: 8.5,
alertText:'走走走',
},
{id: 'P8S 石化扇形范围',
// BBC = First in Line
// BBD = Second in Line,
// D17 = Eye of the Gorgon
// D18 = Crown of the Gorgon
// CFE = Blood of the Gorgon
// CFF = Breath of the Gorgon
type: 'GainsEffect',
netRegex: { effectId: ['D17'] },
condition: (data, matches) => {
return (!石眼范围仅显示自己)||matches.target===data.me;
},
run: (data, matches) => {
if(!石眼范围) return;
let d=parseFloat(matches.duration)-3;
postAoe(`{"Name":"石眼石化 ${matches.target}","AoeType":"Sector","CentreType":"ActorId","CentreValue":0x${matches.targetId},"Radius":25,"Angle":30,"Rotation":0.0,"Color":838926335,"Delay":${d},"During":3}`)
},
},
{id: 'P8S 蛇毒范围',
type: 'GainsEffect',
netRegex: { effectId: 'CFE' },
condition: (data, matches) => {
return (!蛇毒范围仅显示自己)||matches.target===data.me;
},
run: (data, matches) => {
if(!蛇毒范围) return;
let d=parseFloat(matches.duration)-3.5;
postAoe(`{"Name":"蛇毒范围 ${matches.target}","AoeType":"Circle","CentreType":"ActorId","CentreValue":0x${matches.targetId},"Radius":5,"Color":503382015,"Delay":${d},"During":3.5}`)
},
},
{id: 'P8S 人形态2诱导直条',
type: 'Ability',
netRegex: { id: '72CE'},
suppressSeconds:1,
run: (data, matches) => {
if(!人形态2诱导范围) return;
postAoe(`{"Name":"Rect Example","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":100},"TrackType":"Nearest","TrackValue":4,"Length":60,"Width":5,"Rotation":0.0,"Color":671154175,"Delay":0,"During":4}`)
},
},
{id: 'P8S 火蛇范围 第一次',
type: 'StartsUsing',
netRegex: { id: '7925' },
// Sometimes these initial positions are incorrect, so compensate with some delay.
// TODO: can we detect/ignore these incorrect initial positions??
delaySeconds: 0.5,
run: async (data, matches) => {
data.火圈单位.push(matches);
data.强化阶段=true;
if(!火圈范围) return;
postAoe(`{"Name":"火蛇1 火圈","AoeType":"Circle","CentreType":"ActorId","CentreValue":0x${matches.sourceId},"Radius":23,"Color":838926335,"Delay":0,"During":5}`);
postAoe(`{"Name":"火蛇1 火圈","AoeType":"Circle","CentreType":"ActorId","CentreValue":0x${matches.sourceId},"Radius":23,"Color":838926335,"Delay":0,"During":5}`);
},
},
{id: 'P8S 火蛇范围 第二第三次',
type: 'Ability',
netRegex: { id: ['7923', '7924'] },
run: async (data, matches) => {
if(!火圈范围) return;
let result = await callOverlayHandler({
call: 'getCombatants',
ids: [parseInt(matches.sourceId, 16)],
});
// Dirs: N = 0, NE = 1, ..., NW = 7
const x = result.combatants[0].PosX - 100;
const y = result.combatants[0].PosY - 100;
const originalPos = positionTo8Dir(result.combatants[0]);
const heading = headingTo8Dir(result.combatants[0].Heading);
if (
originalPos === 7 && heading === 2 ||
originalPos === 3 && heading === 0 ||
originalPos === 5 && heading === 1
) {
//飞去东北角
postAoe(`{"Name":"火蛇2 东北火圈","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":115,"Y":0,"Z":85},"Radius":23,"Color":503382015,"Delay":0,"During":9}`);
}
if (
originalPos === 1 && heading === 4 ||
originalPos === 5 && heading === 2 ||
originalPos === 7 && heading === 3
) {
//飞去东南角
postAoe(`{"Name":"火蛇2 东南火圈","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":115,"Y":0,"Z":115},"Radius":23,"Color":503382015,"Delay":0,"During":9}`);
}
if (
originalPos === 3 && heading === 6 ||
originalPos === 1 && heading === 5 ||
originalPos === 7 && heading === 4
) {
//飞去西南角
postAoe(`{"Name":"火蛇2 西南火圈","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":85,"Y":0,"Z":115},"Radius":23,"Color":503382015,"Delay":0,"During":9}`);
}
if (
originalPos === 5 && heading === 0 ||
originalPos === 1 && heading === 6 ||
originalPos === 3 && heading === 7
) {
//飞去西北角
postAoe(`{"Name":"火蛇2 西北火圈","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":85,"Y":0,"Z":85},"Radius":23,"Color":503382015,"Delay":0,"During":9}`);
}
},
},
{id: 'P8S 门神 踢足球二四分摊收集器',
type: 'StartsUsing',
netRegex: { id: ['7916', '7917'] },
run: (data, matches) => {
data.足球分摊=matches.id;
if (!足球核爆范围) return;
if (matches.id==='7916') {
data.party.roleToPartyNames_['dps'].forEach(name => {
postAoe(`{"Name":"四分核爆之念(足球)","AoeType":"Circle","CentreType":"ActorName","CentreValue":"${name}","Radius":3,"Color":503381760,"Delay":13,"During":4}`);
});
}else
{
data.party.roleToPartyNames_['healer'].forEach(name => {
postAoe(`{"Name":"二分核爆之念(足球)","AoeType":"Circle","CentreType":"ActorName","CentreValue":"${name}","Radius":6,"Color":503381760,"Delay":13,"During":4}`);
});
}
},
},
{id: 'P8S 踢足球 收集器',
// 793B Trailblaze Shown 直线击退
// 793D Quadrupedal Crush Shown大圈
// 793C Quadrupedal Impact Shown击退
// These are shown in the span of 8.5s
// Blazing Footfalls takes 14.5s to complete +4s to resolve Torch Flames
type: 'StartsUsing',
netRegex: { id: ['793C', '793D']},
// netRegex: { id: '85'},
promise: async (data, matches) =>{
data.足球计数++;
let result = await callOverlayHandler({
call: 'getCombatants',
ids: [parseInt(matches.sourceId, 16)],
});
const x = result.combatants[0].PosX - 100;
const y = result.combatants[0].PosY - 100;
// 0 = N, 1 = E, etc
const dir = Math.round(2 - 2 * Math.atan2(x, y) / Math.PI) % 4;
data.足球击退大圈.push(matches.id);
data.足球击退大圈位置.push(dir);
},
alertText:(data, matches) => {
if (data.足球计数 === 1) {
//击退到东西
if (data.足球击退大圈[0] === '793C' && data.足球击退大圈位置[0] === 1) {
return '先向东击退';
}
if (data.足球击退大圈[0] === '793C' && data.足球击退大圈位置[0] === 3) {
return '先向西击退';
}
if (data.足球击退大圈[0] === '793D' && data.足球击退大圈位置[0] === 1) {
return '先向西击退';
}
if (data.足球击退大圈[0] === '793D' && data.足球击退大圈位置[0] === 3) {
return '先向东击退';
}
}
if (data.足球计数 === 2) {
if (data.足球击退大圈[1] === '793C' && data.足球击退大圈位置[1] === 0) {
return '再去A点';
}
if (data.足球击退大圈[1] === '793C' && data.足球击退大圈位置[1] === 2) {
return '再去C点';
}
if (data.足球击退大圈[1] === '793D' && data.足球击退大圈位置[1] === 0) {
return '再去C点';
}
if (data.足球击退大圈[1] === '793D' && data.足球击退大圈位置[1] === 2) {
return '再去A点';
}
}
},
run: (data, matches) => {
if (data.足球计数 === 1 && 足球东西击退辅助)
{
if (data.足球开始位置 === 'N') {
//1击退
if (data.足球击退大圈[0] === '793C') {
//东击退
if (data.足球击退大圈位置[0] === 1) {
//2222分摊
if (data.足球分摊 === '7916') {
if (位置 === 'MT' || 位置 === 'D1') {
postAoe(`{"Name":"1东击退 2人分摊 MT组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":85.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'ST' || 位置 === 'D2') {
postAoe(`{"Name":"1东击退 2人分摊 ST组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":92.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'H1' || 位置 === 'D3') {
postAoe(`{"Name":"1东击退 2人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":100.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1东击退 2人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":108.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
}
//44分摊
if (data.足球分摊 === '7917') {
if (位置 === 'MT' || 位置 === 'D1' || 位置 === 'H1' || 位置 === 'D2') {
postAoe(`{"Name":"1东击退 4人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":85.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'ST' || 位置 === 'D3' || 位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1东击退 4人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":94.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
}
}
//西击退
if (data.足球击退大圈位置[0] === 3) {
//2222分摊
if (data.足球分摊 === '7916') {
if (位置 === 'MT' || 位置 === 'D1') {
postAoe(`{"Name":"1西击退 2人分摊 MT组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":85.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'ST' || 位置 === 'D2') {
postAoe(`{"Name":"1西击退 2人分摊 ST组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":92.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'H1' || 位置 === 'D3') {
postAoe(`{"Name":"1西击退 2人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":100.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1西击退 2人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":108.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
}
//44分摊
if (data.足球分摊 === '7917') {
if (位置 === 'MT' || 位置 === 'D1' || 位置 === 'H1' || 位置 === 'D2') {
postAoe(`{"Name":"1西击退 4人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":85.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'ST' || 位置 === 'D3' || 位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1西击退 4人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":94.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
}
}
}
//1大圈
if (data.足球击退大圈[0] === '793D') {
//东大圈
if (data.足球击退大圈位置[0] === 1) {
//2222分摊
if (data.足球分摊 === '7916') {
if (位置 === 'MT' || 位置 === 'D1') {
postAoe(`{"Name":"1东大圈 2人分摊 MT组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":85.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'ST' || 位置 === 'D2') {
postAoe(`{"Name":"1东大圈 2人分摊 ST组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":92.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'H1' || 位置 === 'D3') {
postAoe(`{"Name":"1东大圈 2人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":100.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1东大圈 2人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":108.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
}
//44分摊
if (data.足球分摊 === '7917') {
if (位置 === 'MT' || 位置 === 'D1' || 位置 === 'H1' || 位置 === 'D2') {
postAoe(`{"Name":"1东大圈 4人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":85.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'ST' || 位置 === 'D3' || 位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1东大圈 4人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":94.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
}
}
//西大圈
if (data.足球击退大圈位置[0] === 3) {
//2222分摊
if (data.足球分摊 === '7916') {
if (位置 === 'MT' || 位置 === 'D1') {
postAoe(`{"Name":"1西大圈 2人分摊 MT组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":85.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'ST' || 位置 === 'D2') {
postAoe(`{"Name":"1西大圈 2人分摊 ST组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":92.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'H1' || 位置 === 'D3') {
postAoe(`{"Name":"1西大圈 2人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":100.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1西大圈 2人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":108.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
}
//44分摊
if (data.足球分摊 === '7917') {
if (位置 === 'MT' || 位置 === 'D1' || 位置 === 'H1' || 位置 === 'D2') {
postAoe(`{"Name":"1西大圈 4人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":85.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'ST' || 位置 === 'D3' || 位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1西大圈 4人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":94.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
}
}
}
}
if (data.足球开始位置 === 'S') {
//1击退
if (data.足球击退大圈[0] === '793C') {
//东击退
if (data.足球击退大圈位置[0] === 1) {
//2222分摊
if (data.足球分摊 === '7916') {
if (位置 === 'MT' || 位置 === 'D1') {
postAoe(`{"Name":"1东击退 2人分摊 MT组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":115.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'ST' || 位置 === 'D2') {
postAoe(`{"Name":"1东击退 2人分摊 ST组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":108.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'H1' || 位置 === 'D3') {
postAoe(`{"Name":"1东击退 2人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":100.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1东击退 2人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":92.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
}
//44分摊
if (data.足球分摊 === '7917') {
if (位置 === 'MT' || 位置 === 'D1' || 位置 === 'H1' || 位置 === 'D2') {
postAoe(`{"Name":"1东击退 4人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":115.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'ST' || 位置 === 'D3' || 位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1东击退 4人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":106.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
}
}
//西击退
if (data.足球击退大圈位置[0] === 3) {
//2222分摊
if (data.足球分摊 === '7916') {
if (位置 === 'MT' || 位置 === 'D1') {
postAoe(`{"Name":"1西击退 2人分摊 MT组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":115.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'ST' || 位置 === 'D2') {
postAoe(`{"Name":"1西击退 2人分摊 ST组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":108.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'H1' || 位置 === 'D3') {
postAoe(`{"Name":"1西击退 2人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":100.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1西击退 2人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":92.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
}
//44分摊
if (data.足球分摊 === '7917') {
if (位置 === 'MT' || 位置 === 'D1' || 位置 === 'H1' || 位置 === 'D2') {
postAoe(`{"Name":"1西击退 4人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":115.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
if (位置 === 'ST' || 位置 === 'D3' || 位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1西击退 4人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":106.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":9.5}`);
}
}
}
}
//1大圈
if (data.足球击退大圈[0] === '793D') {
//东大圈
if (data.足球击退大圈位置[0] === 1) {
//2222分摊
if (data.足球分摊 === '7916') {
if (位置 === 'MT' || 位置 === 'D1') {
postAoe(`{"Name":"1东大圈 2人分摊 MT组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":115.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'ST' || 位置 === 'D2') {
postAoe(`{"Name":"1东大圈 2人分摊 ST组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":108.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'H1' || 位置 === 'D3') {
postAoe(`{"Name":"1东大圈 2人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":100.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1东大圈 2人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":92.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
}
//44分摊
if (data.足球分摊 === '7917') {
if (位置 === 'MT' || 位置 === 'D1' || 位置 === 'H1' || 位置 === 'D2') {
postAoe(`{"Name":"1东大圈 4人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":115.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'ST' || 位置 === 'D3' || 位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1东大圈 4人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":92,"Y":0,"Z":106.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
}
}
//西大圈
if (data.足球击退大圈位置[0] === 3) {
//2222分摊
if (data.足球分摊 === '7916') {
if (位置 === 'MT' || 位置 === 'D1') {
postAoe(`{"Name":"1西大圈 2人分摊 MT组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":115.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'ST' || 位置 === 'D2') {
postAoe(`{"Name":"1西大圈 2人分摊 ST组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":108.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'H1' || 位置 === 'D3') {
postAoe(`{"Name":"1西大圈 2人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":100.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1西大圈 2人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":92.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
}
//44分摊
if (data.足球分摊 === '7917') {
if (位置 === 'MT' || 位置 === 'D1' || 位置 === 'H1' || 位置 === 'D2') {
postAoe(`{"Name":"1西大圈 4人分摊 H1组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":115.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
if (位置 === 'ST' || 位置 === 'D3' || 位置 === 'H2' || 位置 === 'D4') {
postAoe(`{"Name":"1西大圈 4人分摊 H2组","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":108,"Y":0,"Z":106.0},"Thikness":5,"Color":4278255360,"Delay":0,"During":5}`);
}
}
}
}
}
}
if (data.足球计数 === 2 && 足球南北击退辅助) {
//1大圈2击退
if (data.足球击退大圈[1] === '793C') {
//大圈范围
if (data.足球击退大圈位置[0] === 1) {
postAoe(`{"Name":"1东大圈范围","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":120,"Y":0,"Z":100.0},"Radius":30,"Color":671154175,"Delay":6,"During":4}`);
}
if (data.足球击退大圈位置[0] === 3) {
postAoe(`{"Name":"1西大圈范围","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":80,"Y":0,"Z":100.0},"Radius":30,"Color":671154175,"Delay":6,"During":4}`);
}
//3击退位置
if (data.足球击退大圈位置[1] === 0) {
postAoe(`{"Name":"2向北击退位置","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":100,"Y":0,"Z":92.0},"Thikness":5,"Color":4278255360,"Delay":5,"During":8.6}`);
}
if (data.足球击退大圈位置[1] === 2) {
postAoe(`{"Name":"2向南击退位置","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":100,"Y":0,"Z":108.0},"Thikness":5,"Color":4278255360,"Delay":5,"During":8.6}`);
}
}
//1击退2大圈
if (data.足球击退大圈[1] === '793D') {
//击退起点
if (data.足球击退大圈位置[0] === 1 && data.足球击退大圈位置[1] === 0) {
postAoe(`{"Name":"1东击退2北大圈起点","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":116,"Y":0,"Z":102},"Thikness":5,"Color":4278255360,"Delay":5,"During":5}`);
postAoe(`{"Name":"击退起点","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":116,"Y":0,"Z":102},"Radius":0.25,"Color":1090584320,"Delay":5,"During":5}`);
}
if (data.足球击退大圈位置[0] === 1&& data.足球击退大圈位置[1] === 2) {
postAoe(`{"Name":"1东击退2南大圈起点","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":116,"Y":0,"Z":98},"Thikness":5,"Color":4278255360,"Delay":5,"During":5}`);
postAoe(`{"Name":"击退起点","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":116,"Y":0,"Z":98},"Radius":0.25,"Color":1090584320,"Delay":5,"During":5}`);
}
if (data.足球击退大圈位置[0] === 3&& data.足球击退大圈位置[1] === 0) {
postAoe(`{"Name":"1西击退2北大圈起点","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":84,"Y":0,"Z":102},"Thikness":5,"Color":4278255360,"Delay":5,"During":5}`);
postAoe(`{"Name":"击退起点","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":84,"Y":0,"Z":102},"Radius":0.25,"Color":1090584320,"Delay":5,"During":5}`);
}
if (data.足球击退大圈位置[0] === 3&& data.足球击退大圈位置[1] === 2) {
postAoe(`{"Name":"1西击退2南大圈起点","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":84,"Y":0,"Z":98},"Thikness":5,"Color":4278255360,"Delay":5,"During":5}`);
postAoe(`{"Name":"击退起点","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":84,"Y":0,"Z":98},"Radius":0.25,"Color":1090584320,"Delay":5,"During":5}`);
}
if (data.足球击退大圈位置[1] === 0) {
postAoe(`{"Name":"2向南击退位置","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":100,"Y":0,"Z":108},"Thikness":5,"Color":4278255360,"Delay":10,"During":3.6}`);
}
if (data.足球击退大圈位置[1] === 2) {
postAoe(`{"Name":"2向北击退位置","AoeType":"Link","CentreType":"ActorName","CentreValue":"${data.me}","Centre2Type":"PostionValue","Centre2Value":{"X":100,"Y":0,"Z":92},"Thikness":5,"Color":4278255360,"Delay":10,"During":3.6}`);
}
}
}
if (data.足球计数 === 2 && 足球第四下辅助)
{
if (data.足球击退大圈[1] === '793C')
{
if (data.足球击退大圈位置[1] === 0)
{
postAoe(`{"Name":"足球第四下 北击退辅助","AoeType":"Repel","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":80.0},"Length":30,"Thikness":5,"Color":4291559168,"Delay":13.6,"During":3}`);
}
if (data.足球击退大圈位置[1] === 2)
{
postAoe(`{"Name":"足球第四下 南击退辅助","AoeType":"Repel","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":120.0},"Length":30,"Thikness":5,"Color":4291559168,"Delay":13.6,"During":3}`);
}
}
if (data.足球击退大圈[1] === '793D')
{
if (data.足球击退大圈位置[1] === 0)
{
postAoe(`{"Name":"足球第四下 北大圈范围","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":80.0},"Radius":30,"Color":671154175,"Delay":13.6,"During":3}`);
}
if (data.足球击退大圈位置[1] === 2)
{
postAoe(`{"Name":"足球第四下 南大圈范围","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":120.0},"Radius":30,"Color":671154175,"Delay":13.6,"During":3}`);
}
}
}
},
},
{id: 'P8S 第二次兽变身击退/大圈',
// 7A04 Quadrupedal Impact
// 7A05 Quadrupedal Crush
type: 'StartsUsing',
netRegex: { id: ['7A04', '7A05']},
run: async (data, matches) => {
// select the Hephaistoss with same source id
let hephaistosData = null;
hephaistosData = await callOverlayHandler({
call: 'getCombatants',
ids: [parseInt(matches.sourceId, 16)],
});
// if we could not retrieve combatant data, the
// trigger will not work, so just resume promise here
if (hephaistosData === null) {
console.error(`Hephaistos: null data`);
return;
}
if (hephaistosData.combatants.length !== 1) {
console.error(`Hephaistos: expected 1, got ${hephaistosData.combatants.length}`);
return;
}
const hephaistos = hephaistosData.combatants[0];
if (!hephaistos)
return;
// Boss faces 3.14159274 or -3.13727832 when North
// Flip callout if crush (7A05)
const epsilon = 0.1;
if (Math.abs(Math.abs(hephaistos.Heading) - 3.14) < epsilon)
{
data.足球开始位置='N';
}else{
data.足球开始位置='S';
}
if (Math.abs(Math.abs(hephaistos.Heading) - 3.14) < epsilon)
{
if (matches.id === '7A05') {
//北大圈
postAoe(`{"Name":"兽形态2 开场北大圈","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":80.0},"Radius":30,"Color":503382015,"Delay":0,"During":5.5}`);
} else {
//北击退
postAoe(`{"Name":"兽形态2 开场北击退","AoeType":"Repel","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":80.0},"Length":30,"Thikness":5,"Color":4291559168,"Delay":0,"During":5.5}`);
}
}
// Boss will be facing South
else{
if (matches.id === '7A05')
{
//南大圈
postAoe(`{"Name":"兽形态2 开场南大圈","AoeType":"Circle","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":120.0},"Radius":30,"Color":503382015,"Delay":0,"During":5.5}`);
}else {
//南击退
postAoe(`{"Name":"兽形态2 开场南击退","AoeType":"Repel","CentreType":"PostionValue","CentreValue":{"X":100,"Y":0,"Z":120.0},"Length":30,"Thikness":5,"Color":4291559168,"Delay":0,"During":5.5}`);
}
}
},
},
{id: 'P8S 第二次蛇直线AOE',
type: 'StartsUsing',
netRegex: { id: '7932' },
run: (data, matches) => {
if(!第二次蛇直线AOE范围) return;
postAoe(`{"Name":"Rect Example","AoeType":"Rect","CentreType":"ActorId","CentreValue":0x${matches.sourceId},"Length":60,"Width":10,"Rotation":0.0,"Color":671154175,"Delay":0,"During":6}`)
},
},
//791E 四分核爆
//7915 四分核爆之念
//7916 四分核爆之念(足球)
//7919 四分核爆之现
//791D 八分核爆
//7914 八分核爆之念
//7918 八分核爆之现
{
id: 'P8S 本体小怪冲',
type: 'StartsUsing',
netRegex: { id: '7A8B' },
run:(data, matches) => {
postAoe(`{"Name":"本体小怪冲","AoeType":"Rect","CentreType":"ActorId","CentreValue":0x${matches.sourceId},"Length":40,"Width":10,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":6}`)
},
},
{
id: 'P8S 左右刀',
type: 'StartsUsing',
netRegex: { id: ['79D7','79D8'] },
run:(data, matches) => {
if (matches.id==='79D7') {
//左
postAoe(`{"Name":"本体左右刀 左","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":90,"Y":0,"Z":80},"Length":40,"Width":20,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":6}`)
}
else
{
postAoe(`{"Name":"本体左右刀 右","AoeType":"Rect","CentreType":"PostionValue","CentreValue":{"X":110,"Y":0,"Z":80},"Length":40,"Width":20,"Rotation":0.0,"Color":1073807359,"Delay":0,"During":6}`)
}
},
},
// // ---------------- Part 2 ----------------
// {//分散死刑6m
// id: 'P8S Tyrant\'s Unholy Darkness',
// type: 'StartsUsing',
// // Untargeted, with 79DE damage after.
// netRegex: { id: '79DD', source: 'Hephaistos', capture: false },
// {//左刀
// id: 'P8S Ashing Blaze Right',
// type: 'StartsUsing',
// netRegex: { id: '79D7', source: 'Hephaistos', capture: false },
// alertText: (data, _matches, output) => {
// if (data.firstAlignmentSecondAbility === 'stack')
// return output.rightAndStack();
// if (data.firstAlignmentSecondAbility === 'spread')
// return output.rightAndSpread();
// return output.right();
// },
// run: (data) => delete data.firstAlignmentSecondAbility,
// },
// {//右刀
// id: 'P8S Ashing Blaze Left',
// type: 'StartsUsing',
// netRegex: { id: '79D8', source: 'Hephaistos', capture: false },
// alertText: (data, _matches, output) => {
// if (data.firstAlignmentSecondAbility === 'stack')
// return output.leftAndStack();
// if (data.firstAlignmentSecondAbility === 'spread')
// return output.leftAndSpread();
// return output.left();
// },
// },
// {//小怪冲
// id: 'P8S Illusory Hephaistos End of Days',
// type: 'StartsUsing',
// netRegex: { id: '7A8B' },
// infoText: (_data, matches, output) => {
// // Illusory Hephaistos are at x=(80 or 120), y=(85 or 95 or 105 or 115).
// // Either the first or second row is always free.
// const y = parseFloat(matches.y);
// const epsilon = 2;
// const row1y = 85;
// const row2y = 95;
// // TODO: combine this with the ice/fire/stack/spread calls too?
// if (Math.abs(y - row1y) < epsilon)
// return output.row2();
// if (Math.abs(y - row2y) < epsilon)
// return output.row1();
// },
// outputStrings: {
// row1: {
// en: 'Front Row',
// de: 'Vordere Reihe',
// fr: 'Première rangée',
// ja: '1列目',
// cn: '第 1 行',
// ko: '첫번째 줄',
// },
// row2: {
// en: 'Second Row',
// de: 'Zweite Reihe',
// fr: 'Deuxième rangée',
// ja: '2列目',
// cn: '第 2 行',
// ko: '두번째 줄',
// },
// },
// },
// {//万象灰烬
// id: 'P8S Limitless Desolation',
// type: 'StartsUsing',
// netRegex: { id: '75ED', source: 'Hephaistos', capture: false },
// response: Responses.spread('alert'),
// },
// {//支配者一击,软狂暴
// id: 'P8S Dominion',
// type: 'StartsUsing',
// netRegex: { id: '79D9', source: 'Hephaistos', capture: false },
// response: Responses.spread('alert'),
// run: (data) => data.deformationTargets = [],
// },
// {
// id: 'P8S Aionagonia',
// type: 'StartsUsing',
// netRegex: { id: '7A22', source: 'Hephaistos', capture: false },