Commit 00014cbd authored by 未闻皂名's avatar 未闻皂名

2022/11/27 bug修复

parent 240495f7
......@@ -45,7 +45,7 @@ end
-- 赋予: 效果破坏抗性
function RushDuel.AttachEffectIndes(e, card, value, desc, reset, forced)
local attach = RushDuel.CreateSingleEffect(e, desc, card, EFFECT_INDESTRUCTABLE_EFFECT, value, reset, forced)
attach:SetLabel(e:GetHandlerPlayer())
attach:SetLabel(e:GetHandlerPlayer() + 1)
return attach
end
-- 赋予: 战斗, 效果破坏抗性 (有次数限制)
......
......@@ -20,8 +20,8 @@ function RushDuel.ValueEffectIndesType(self_type, opponent_type, ignore)
return ignore or false, s_type or 0, o_type or 0
end
local tp = e:GetHandlerPlayer()
if e:GetLabel() ~= nil then
tp = e:GetLabel()
if e:GetLabel() ~= 0 then
tp = e:GetLabel() - 1
end
if rp == tp then
return s_type ~= 0 and re:IsActiveType(s_type)
......
......@@ -17,7 +17,7 @@ function cm.filter(c)
return c:IsFaceup() and c:IsLevelBelow(8) and c:IsAbleToHand()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and bit.band(r,REASON_RULE)~=0
return ep~=tp and r==REASON_RULE
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,0,LOCATION_MZONE,1,nil) end
......
......@@ -25,6 +25,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(aux.Stringid(m,1),cm.filter,tp,LOCATION_MZONE,0,1,1,nil,function(g)
RD.AttachAtkDef(e,g:GetFirst(),-500,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
RD.CanSelectAndDoAction(aux.Stringid(m,2),HINTMSG_DESTROY,cm.desfilter,tp,0,LOCATION_ONFIELD,1,1,nil,function(sg)
Duel.BreakEffect()
Duel.Destroy(sg,REASON_EFFECT)
end)
end)
......
......@@ -29,6 +29,6 @@ end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if RD.SelectAndSpecialSummon(aux.NecroValleyFilter(cm.filter),tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP) then
local tc=Duel.GetOperatedGroup():GetFirst()
RD.AttachAtkDef(e,tc,-800,0,RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
RD.AttachAtkDef(e,tc,-800,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end
end
\ No newline at end of file
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