Commit d8882afc authored by mallu11's avatar mallu11 Committed by GitHub

fix クロノダイバー・ダブルバレル (#1569)

parent 8ceecbeb
...@@ -48,7 +48,9 @@ function c91135480.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,9 @@ function c91135480.operation(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) or not c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) then return end if not c:IsRelateToEffect(e) or not c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) then return end
local g=c:GetOverlayGroup() local g=c:GetOverlayGroup()
local tg=Group.CreateGroup() local tg=Group.CreateGroup()
if c:IsFaceup() then
tg:Merge(g:Filter(Card.IsType,nil,TYPE_MONSTER)) tg:Merge(g:Filter(Card.IsType,nil,TYPE_MONSTER))
end
if Duel.IsExistingMatchingCard(c91135480.ctfilter,tp,0,LOCATION_MZONE,1,nil) then if Duel.IsExistingMatchingCard(c91135480.ctfilter,tp,0,LOCATION_MZONE,1,nil) then
tg:Merge(g:Filter(Card.IsType,nil,TYPE_SPELL)) tg:Merge(g:Filter(Card.IsType,nil,TYPE_SPELL))
end end
...@@ -74,7 +76,18 @@ function c91135480.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +76,18 @@ function c91135480.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectMatchingCard(tp,c91135480.ctfilter,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectMatchingCard(tp,c91135480.ctfilter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.GetControl(g:GetFirst(),tp,PHASE_END,1) local tc=g:GetFirst()
if Duel.GetControl(tc,tp,PHASE_END,1)~=0 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_TRIGGER)
tc:RegisterEffect(e2)
end
end end
if sg:IsExists(Card.IsType,1,nil,TYPE_TRAP) then if sg:IsExists(Card.IsType,1,nil,TYPE_TRAP) then
Duel.BreakEffect() Duel.BreakEffect()
...@@ -82,19 +95,20 @@ function c91135480.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,19 +95,20 @@ function c91135480.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c91135480.dfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectMatchingCard(tp,c91135480.dfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
local tc=g:GetFirst() local tc=g:GetFirst()
local e1=Effect.CreateEffect(e:GetHandler()) Duel.NegateRelatedChain(tc,RESET_TURN_SET)
e1:SetType(EFFECT_TYPE_SINGLE) local e3=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e3:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE) e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e3:SetCode(EFFECT_DISABLE)
tc:RegisterEffect(e1) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
local e2=Effect.CreateEffect(e:GetHandler()) tc:RegisterEffect(e3)
e2:SetType(EFFECT_TYPE_SINGLE) local e4=Effect.CreateEffect(c)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e4:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT) e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetValue(RESET_TURN_SET) e4:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e4:SetValue(RESET_TURN_SET)
tc:RegisterEffect(e2) e4:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e4)
end end
end end
end 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