mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 17:02:26 +08:00
7 lines
286 B
Go
7 lines
286 B
Go
function OnBeHurt(context, element_type, strike_type, is_host)
|
|
-- 获取机关当前状态
|
|
local state = ScriptLib.GetGadgetState(context)
|
|
if element_type == ElementType.Fire and state == GadgetState.Default then
|
|
ScriptLib.SetGadgetState(context, GadgetState.GearStart)
|
|
end
|
|
end |