forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ultima_weapon_ultimate.js
107 lines (106 loc) · 3.01 KB
/
ultima_weapon_ultimate.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
'use strict';
// Ultima Weapon Ultimate
[{
zoneRegex: /^(The Weapon's Refrain \(Ultimate\)|Unknown Zone \(309\))$/,
triggers: [
{
id: 'UWU Great Whirlwind',
damageRegex: gLang.kAbility.GreatWhirlwind,
condition: function(e, data) {
return data.IsPlayerId(e.targetId);
},
mistake: function(e, data) {
return { type: 'fail', blame: e.targetName, text: e.effectName };
},
},
{
id: 'UWU Slipstream',
damageRegex: gLang.kAbility.Slipstream,
condition: function(e, data) {
return data.IsPlayerId(e.targetId);
},
mistake: function(e, data) {
return { type: 'fail', blame: e.targetName, text: e.effectName };
},
},
{
id: 'UWU Windburn',
gainsEffectRegex: gLang.kEffect.Windburn,
// TODO: implement suppressSeconds <_<
suppressSeconds: 2,
mistake: function(e) {
return { type: 'warn', blame: e.targetName, text: e.effectName };
},
},
{
id: 'UWU Wicked Wheel',
damageRegex: gLang.kAbility.WickedWheel,
condition: function(e, data) {
return data.IsPlayerId(e.targetId);
},
mistake: function(e, data) {
return { type: 'fail', blame: e.targetName, text: e.effectName };
},
},
{
id: 'UWU Wicked Tornado',
damageRegex: gLang.kAbility.WickedTornado,
condition: function(e, data) {
return data.IsPlayerId(e.targetId);
},
mistake: function(e, data) {
return { type: 'fail', blame: e.targetName, text: e.effectName };
},
},
{
id: 'UWU Searing Wind',
damageRegex: gLang.kAbility.SearingWind,
condition: function(e, data) {
return data.IsPlayerId(e.targetId);
},
mistake: function(e, data) {
return { type: 'warn', blame: e.targetName, text: e.effectName };
},
},
{
id: 'UWU Eruption',
damageRegex: gLang.kAbility.Eruption,
condition: function(e, data) {
return data.IsPlayerId(e.targetId);
},
mistake: function(e, data) {
return { type: 'warn', blame: e.targetName, text: e.effectName };
},
},
{
id: 'UWU Weight',
damageRegex: gLang.kAbility.WeightOfTheLand,
condition: function(e, data) {
return data.IsPlayerId(e.targetId);
},
mistake: function(e, data) {
return { type: 'warn', blame: e.targetName, text: e.effectName };
},
},
{
id: 'UWU Landslide1',
damageRegex: gLang.kAbility.Landslide1,
condition: function(e, data) {
return data.IsPlayerId(e.targetId);
},
mistake: function(e, data) {
return { type: 'warn', blame: e.targetName, text: e.effectName };
},
},
{
id: 'UWU Landslide2',
damageRegex: gLang.kAbility.Landslide2,
condition: function(e, data) {
return data.IsPlayerId(e.targetId);
},
mistake: function(e, data) {
return { type: 'warn', blame: e.targetName, text: e.effectName };
},
},
],
}];