Commit 879a6b19 authored by Tachibana's avatar Tachibana

1145141919810

parent fbc6f637
Pipeline #14503 passed with stages
in 23 minutes and 34 seconds
No preview for this file type
......@@ -49,6 +49,7 @@ function cm.tkcon(e,tp,eg,ep,ev,re,r,rp)
return ex and (tg~=nil or tc>0)
end
function cm.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:GetFlagEffect(m+900)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,81078999,0x681f,TYPES_TOKEN_MONSTER,0,0,4,RACE_FIEND,ATTRIBUTE_DARK) end
c:RegisterFlagEffect(m+900,RESET_CHAIN,0,1)
......@@ -75,6 +76,5 @@ 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,17 +49,16 @@ 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()) and c:GetFlagEffect(81078095)==0
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())
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()) and c:GetFlagEffect(81078095)==0
return re:GetHandler():GetFlagEffect(m)>0 and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler())
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