Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- recastable_buffs = @buff_spells
- .select { |_name, data| data['recast'] || data['recast_every'] || data['expire'] }
- .select { |_name, data| data['expire'] ? Flags["ct-#{data['abbrev']}"] : true }
- .select { |name, _data| check_buff_conditions?(name, game_state) }
- name, data = recastable_buffs.find do |name, data|
- if data['pet_type']
- check_spell_timer?(data) && DRRoom.npcs.include?(data['pet_type'])
- elsif data['recast_every']
- check_spell_timer?(data)
- elsif data['expire']
- true
- else
- !DRSpells.active_spells[name] || DRSpells.active_spells[name].to_i <= data['recast']
- end
- end
- echo("found buff missing: #{name}") if $debug_mode_ct && name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement