Commit f0ec7bfe authored by 未闻皂名's avatar 未闻皂名

2025/3/2 bug修复

parent 6a2bed65
Pipeline #33415 passed with stages
in 17 minutes and 24 seconds
......@@ -35,13 +35,15 @@ function RushDuel.AttachAttackNotChainTrapLimit(e, rp, tp)
end
-- 永续效果: 战斗破坏怪兽送去墓地时的处理
function RushDuel.ContinuousBattleDestroyToGrave(card, condition, operation)
function RushDuel.ContinuousBattleDestroyToGrave(card, condition, operation, register)
local e1 = Effect.CreateEffect(card)
e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_BATTLE_DESTROYING)
e1:SetCondition(RushDuel.BattleDestroyToGraveCondition(condition))
e1:SetOperation(RushDuel.BattleDestroyToGraveOperation(operation))
card:RegisterEffect(e1)
if register ~= false then
card:RegisterEffect(e1)
end
return e1
end
function RushDuel.BattleDestroyToGraveCondition(condition)
......
......@@ -15,8 +15,9 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_XMATERIAL)
c:RegisterEffect(e2)
--Damage
local e3=RD.ContinuousBattleDestroyToGrave(c,cm.damcon,cm.damop)
local e3=RD.ContinuousBattleDestroyToGrave(c,cm.damcon,cm.damop,false)
e3:SetType(EFFECT_TYPE_XMATERIAL+EFFECT_TYPE_CONTINUOUS)
c:RegisterEffect(e3)
--Continuous Effect
RD.AddContinuousEffect(c,e1,e2,e3)
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