Commit 71f964f7 authored by 未闻皂名's avatar 未闻皂名

2025/10/29 bug修复

parent 09c058db
Pipeline #41316 passed with stages
in 10 minutes and 25 seconds
...@@ -65,11 +65,11 @@ function RushDuel.InitRule() ...@@ -65,11 +65,11 @@ function RushDuel.InitRule()
return re:GetHandler():GetFlagEffect(get_effect_owner_code(re)) ~= 0 return re:GetHandler():GetFlagEffect(get_effect_owner_code(re)) ~= 0
end) end)
RushDuel.CreateFieldGlobalEffect(true, EVENT_CHAIN_SOLVING, function(e, tp, eg, ep, ev, re, r, rp) RushDuel.CreateFieldGlobalEffect(true, EVENT_CHAIN_SOLVING, function(e, tp, eg, ep, ev, re, r, rp)
local te, p = Duel.GetChainInfo(ev, CHAININFO_TRIGGERING_EFFECT, CHAININFO_TRIGGERING_PLAYER) local te = Duel.GetChainInfo(ev, CHAININFO_TRIGGERING_EFFECT)
local tc=te:GetHandler() local tc=te:GetHandler()
local code = get_effect_owner_code(te) local code = get_effect_owner_code(te)
tc:RegisterFlagEffect(code, RESET_EVENT + RESETS_STANDARD + RESET_PHASE + PHASE_END, EFFECT_FLAG_CLIENT_HINT, 1, 0, HINTMSG_EFFECT_USED) tc:RegisterFlagEffect(code, RESET_EVENT + RESETS_STANDARD + RESET_PHASE + PHASE_END, EFFECT_FLAG_CLIENT_HINT, 1, 0, HINTMSG_EFFECT_USED)
RushDuel.ActivateCodes[p + 1][tc:GetCode()] = true RushDuel.ActivateCodes[ep + 1][tc:GetCode()] = true
end) end)
-- 同一时点只能发动一张陷阱卡 -- 同一时点只能发动一张陷阱卡
local function is_trap(e) local function is_trap(e)
......
...@@ -18,7 +18,7 @@ function cm.filter(c) ...@@ -18,7 +18,7 @@ function cm.filter(c)
return c:IsLevelBelow(5) and c:IsRace(RACE_GALAXY) and c:IsAttack(900) and c:IsAbleToHand() return c:IsLevelBelow(5) and c:IsRace(RACE_GALAXY) and c:IsAttack(900) and c:IsAbleToHand()
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsPlayerNoActivateInThisTurn(tp,list[2]) return RD.IsPlayerNoActivateInThisTurn(tp,list[1])
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,nil) end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment