シンガー優先処理の件解決できました
function cast.check_song(songs,targ,buffs,spell_recasts,recast)
for buff,num in pairs(song_list) do
for x = 1,num do
local song = get.song(get.songs[buff][x])
if song and spell_recasts[song.id] <= 0 and
(not timers[targ] or not timers[targ][song.enl] or os.time()-timers[targ][song.enl].ts+recast>0 or
(buffs.troubadour and not timers[targ][song.enl].nt) or
(buffs['soul voice'] and not timers[targ][song.enl].sv)) then
return song.enl
↓
for pri = 1, 22 do
local buff = ids.prio[pri]:lower()
--print(pri .. " " .. buff)
--print(" " .. song_list[buff])
if not (song_list[buff] == nil) then
for x = 1, song_list[buff] do
local song = get.song(get.songs[buff][x])
if song and spell_recasts[song.id] <= 0 and
(not timers[targ] or not timers[targ][song.enl] or os.time()-timers[targ][song.enl].ts+recast>0 or
(buffs.troubadour and not timers[targ][song.enl].nt) or
(buffs['soul voice'] and not timers[targ][song.enl].sv)) then
return song.enl