Commit 9567a17f authored by nanahira's avatar nanahira

catchup

parent ed1db092
......@@ -50,8 +50,11 @@ function cm.rcon(e,tp,eg,ep,ev,re,r,rp)
and (r & REASON_COST)~=0 and re:IsHasType(0x7e0) and re:IsActiveType(TYPE_XYZ)
end
function cm.rop(e,tp,eg,ep,ev,re,r,rp)
local min=ev&0xffff
local max=(ev>>16)&0xffff
Duel.Hint(HINT_CARD,0,e:GetHandler():GetOriginalCode())
e:GetHandler():RegisterFlagEffect(m,0x1fe1000+RESET_PHASE+PHASE_END,0,1)
return max
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsContains(e:GetHandler())
......@@ -169,4 +172,4 @@ function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0)
end
\ No newline at end of file
end
......@@ -78,10 +78,11 @@ function cm.rcon(e,tp,eg,ep,ev,re,r,rp)
return (r & REASON_COST)~=0 and re:GetHandler()==e:GetHandler() and re:IsHasType(0x7e0) and Duel.IsExistingMatchingCard(cm.retfilter,tp,LOCATION_REMOVED,0,ct,nil)
end
function cm.rop(e,tp,eg,ep,ev,re,r,rp)
local ct=(ev & 0xffff)
local min=ev&0xffff
local max=(ev>>16)&0xffff
Duel.Hint(HINT_CARD,0,e:GetOwner():GetOriginalCode())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,cm.retfilter,tp,LOCATION_REMOVED,0,ct,ct,nil)
local g=Duel.SelectMatchingCard(tp,cm.retfilter,tp,LOCATION_REMOVED,0,min,max,nil)
local des=g:IsExists(Card.IsType,1,nil,TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ) and 0 or 2
Duel.SendtoDeck(g,nil,des,REASON_COST)
return Duel.SendtoDeck(g,nil,des,REASON_COST)
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