Commit fbc6f637 authored by Tachibana's avatar Tachibana

1145141919810

parent 57087107
Pipeline #14502 passed with stages
in 27 minutes and 20 seconds
......@@ -75,5 +75,6 @@ function cm.tkop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(RESET_TURN_SET)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_CHAIN)
tc:RegisterEffect(e2)
tc:RegisterFlagEffect(m,RESET_CHAIN,0,1)
end
end
......@@ -49,16 +49,17 @@ function cm.setop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.chcon1(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and re:IsActiveType(TYPE_TRAP) and re:GetHandler():IsSetCard(0x681f) and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler())
return ep==tp and re:IsActiveType(TYPE_TRAP) and re:GetHandler():IsSetCard(0x681f) and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) and c:GetFlagEffect(81078095)==0
end
function cm.chop1(e,tp,eg,ep,ev,re,r,rp)
re:GetHandler():RegisterFlagEffect(m,RESET_CHAIN,0,1)
end
function cm.chcon2(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler():GetFlagEffect(m)>0 and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler())
return re:GetHandler():GetFlagEffect(m)>0 and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) and c:GetFlagEffect(81078095)==0
end
function cm.chop2(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) then return end
if c:GetFlagEffect(81078095)>0 then return end
local g=Group.CreateGroup()
Duel.ChangeTargetCard(ev,g)
return Duel.ChangeChainOperation(ev,cm.repop)
......
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