-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgolbez.py
46 lines (38 loc) · 1.63 KB
/
golbez.py
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
import glm
from raid_helper import utils as raid_utils
from raid_helper.utils.typing import *
from raid_helper.data import special_actions, delay_until
special_actions[34523] = raid_utils.fan_shape(180)
special_actions[33899] = raid_utils.fan_shape(180)
special_actions[33927] = raid_utils.fan_shape(180)
special_actions[34535] = raid_utils.fan_shape(180)
special_actions[34541] = raid_utils.donut_shape(6, 22)
special_actions[34543] = raid_utils.fan_shape(180)
special_actions[34546] = raid_utils.fan_shape(180)
delay_until[34546] = 4
delay_until[34540] = 4
delay_until[34541] = 4
delay_until[34543] = 4
delay_until[33876] = 4
delay_until[33877] = 4
delay_until[33878] = 4
delay_until[33879] = 4
map_ex = raid_utils.MapTrigger(1140)
@map_ex.on_set_channel(17)
def on_cauterize(msg: ActorControlMessage[actor_control.SetChanneling]):
source_actor = raid_utils.NActor.by_id(msg.source_id)
target_actor = raid_utils.NActor.by_id(msg.param.target_id)
raid_utils.timeout_when_channeling_change(
raid_utils.draw_rect(width=12, length=50, pos=source_actor, facing=lambda _: glm.polar(target_actor.update().pos - source_actor.update().pos).y, duration=20),
msg.source_id, msg.param.target_id, msg.param.idx
)
@map_ex.on_lockon(0x1da)
def on_dragons_descent_lockon(msg: ActorControlMessage[actor_control.SetLockOn]):
if raid_utils.is_me_id(msg.source_id): return
source_actor = raid_utils.NActor.by_id(msg.source_id)
raid_utils.draw_knock_predict_circle(
radius=45,
pos=lambda: source_actor.update().pos,
duration=8.5,
knock_distance=12
)