forked from elanthia-online/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuff.lic
More file actions
32 lines (22 loc) · 648 Bytes
/
buff.lic
File metadata and controls
32 lines (22 loc) · 648 Bytes
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
=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
cast_spells(spells, settings)
end
end
Waggle.new