forked from rpherbig/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buff.lic
43 lines (32 loc) · 960 Bytes
/
buff.lic
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
=begin
Documentation: https://elanthipedia.play.net/Lich_script_development#buff
=end
custom_require.call(%w[common common-arcana events spellmonitor])
class Waggle
include DRC
include DRCA
def initialize
arg_definitions = [
[
{ name: 'spells', regex: /\w+/, optional: true, description: 'spell list to use, otherwise default' }
]
]
args = parse_args(arg_definitions)
settings = get_settings
waggle_spells = settings.waggle_sets
spells = args.spells ? waggle_spells[args.spells] : waggle_spells['default']
return unless spells
if DRStats.barbarian?
start_barb_abilities(spells, settings)
elsif DRStats.thief?
start_khris(spells, settings)
else
spells.each_value do |value|
next unless value['use_auto_mana']
check_discern(value, settings)
end
cast_spells(spells, settings, settings.waggle_force_cambrinth)
end
end
end
Waggle.new