local mods = {} function mods.reigeki_untech(pat, untech) for idx = 0, pat:get_frame_count(695, 0) do local frame = pat:get_frame(695, 0, idx) if #frame.attackbox > 0 and frame.damage == 0 then pat:update_frame(695, 0, idx, { untech = untech, blockstop_self = 30 }) return end end end function mods.modifyweathercard(pat) for idx = 0, pat:get_frame_count(690, 1) - 1 do pat:update_frame(690, 1, idx, { duration = 2 }) end for idx = 0, pat:get_frame_count(691, 1) - 1 do pat:update_frame(691, 1, idx, { duration = 2 }) end for idx = 0, pat:get_frame_count(692, 0) - 1 do pat:update_frame(692, 0, idx, { duration = 1 }) end for idx = 0, pat:get_frame_count(692, 3) - 1 do pat:update_frame(692, 3, idx, { duration = 2 }) end for idx = 0, pat:get_frame_count(693, 0) - 1 do pat:update_frame(693, 0, idx, { duration = 1 }) end for idx = 0, pat:get_frame_count(693, 3) - 1 do pat:update_frame(693, 3, idx, { duration = 2 }) end for idx = 0, pat:get_frame_count(694, 0) - 1 do pat:update_frame(694, 0, idx, { duration = 1 }) end for idx = 0, pat:get_frame_count(694, 3) - 1 do pat:update_frame(694, 3, idx, { duration = 2 }) end end function mods.modifyOTG(pat) for idx = 0, 3 do for frame = 0, pat:get_frame_count(97, idx) - 1 do pat:update_frame(97, idx, frame, function(frame) frame.hurtbox[1] = pat:get_frame(96, 0, 0).hurtbox[1] unset_fflag(frame, FF_MELEE_INV) unset_fflag(frame, FF_BULLET_INV) unset_fflag(frame, FF_GRAZE) set_fflag(frame, 129) end) end end for move = 98, 99 do pat:update_frame(move, 0, 0, function(frame) frame.hurtbox[1] = pat:get_frame(96, 0, 0).hurtbox[1] unset_fflag(frame, FF_MELEE_INV) unset_fflag(frame, FF_BULLET_INV) unset_fflag(frame, FF_GRAZE) set_fflag(frame, 129) end) end for seq = 1, 3 do pat:update_frame(99, seq, 0, function(frame) frame.hurtbox[1] = pat:get_frame(96, 0, 0).hurtbox[1] unset_fflag(frame, FF_MELEE_INV) unset_fflag(frame, FF_BULLET_INV) unset_fflag(frame, FF_GRAZE) set_fflag(frame, 129) end) end end return function(pat, charname) -- mods.modifyOTG(pat) mods.modifyweathercard(pat) mods.reigeki_untech(pat, config:getdef("global", "reigeki", "untech", 6000)) end