can some one help me figure out why this wont work
Code:
min_fm_for_flourishes = {['Animated Flourish']=1, ['Desperate Flourish']=1, ['Violent Flourish']=1, ['Reverse Flourish']=1, ['Building Flourish']=1,
['Wild Flourish']=2, ['Climactic Flourish']=1, ['Striking Flourish']=2, ['Ternary Flourish']=3,}
if min_fm_for_flourishes[spell.name] then
local fm_count = 0
for i, v in pairs(buffactive) do
if string.startswith(i, 'finishing move') then
for w in string.gmatch (i, '%d') do
fm_count = tonumber(w)
if min_fm_for_flourishes[spell.name] < fm_count then
return true
end
end
end
end
end