Commit 4906b3c9 authored by TanakaKotoha's avatar TanakaKotoha

wadashimo

parent d37cd663
Pipeline #654 passed with stages
in 41 minutes and 6 seconds
No preview for this file type
...@@ -27,48 +27,48 @@ function c1111002.initial_effect(c) ...@@ -27,48 +27,48 @@ function c1111002.initial_effect(c)
end end
-- --
function c1111002.tfilter1_1(c,e,tp) function c1111002.tfilter1_1(c,e,tp)
return muxu.check_set_Urban(c) return muxu.check_set_Urban(c)
and c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
and Duel.IsExistingTarget(c1111002.tfilter1_2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) and Duel.IsExistingMatchingCard(c1111002.tfilter1_2,tp,LOCATION_EXTRA,0,1,nil,e,tp,tc)
end end
function c1111002.tfilter1_2(c,e,tp,tc) function c1111002.tfilter1_2(c,e,tp,tc)
return muxu.check_set_Urban(c) and c:IsType(TYPE_MONSTER) return muxu.check_set_Urban(c) and c:IsType(TYPE_MONSTER)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.GetLocationCountFromEx(tp,tp,tc,c)>0 and Duel.GetLocationCountFromEx(tp,tp,tc,c)>0
end end
function c1111002.tg1(e,tp,eg,ep,ev,re,r,rp,chk) function c1111002.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chkc then return chkc:IsControler(tp) and c1111002.tfilter1_1(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and c1111002.tfilter1_1(chkc,e,tp) end
if chk==0 then return Duel.IsExistingTarget(c1111002.tfilter1_1,tp,LOCATION_MZONE,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingTarget(c1111002.tfilter1_1,tp,LOCATION_MZONE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
local rg=Duel.SelectTarget(tp,c1111002.tfilter1_1,tp,LOCATION_MZONE,0,1,1,nil,e,tp) local rg=Duel.SelectTarget(tp,c1111002.tfilter1_1,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,rg,1,tp,LOCATION_MZONE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,rg,1,tp,LOCATION_MZONE)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
-- --
function c1111002.op1(e,tp,eg,ep,ev,re,r,rp) function c1111002.op1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) then return end if not tc:IsRelateToEffect(e) then return end
if Duel.SendtoHand(tc,nil,REASON_EFFECT)<1 then return end if Duel.SendtoHand(tc,nil,REASON_EFFECT)<1 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) if Duel.GetLocationCountFromEx(tp)<1 then return end
local sg=Duel.SelectMatchingCard(tp,c1111002.tfilter1_2,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
if sg:GetCount()>0 then local sg=Duel.SelectMatchingCard(tp,c1111002.tfilter1_2,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tc)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) if sg:GetCount()>0 then
end Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
local e1_2=Effect.CreateEffect(c) end
e1_2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) local e1_2=Effect.CreateEffect(c)
e1_2:SetCode(EVENT_PHASE+PHASE_STANDBY) e1_2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1_2:SetCountLimit(1) e1_2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1_2:SetOperation(c1111002.op1_2) e1_2:SetCountLimit(1)
e1_2:SetReset(RESET_PHASE+PHASE_STANDBY+RESET_OPPO_TURN) e1_2:SetOperation(c1111002.op1_2)
Duel.RegisterEffect(e1_2,tp) e1_2:SetReset(RESET_PHASE+PHASE_STANDBY+RESET_OPPO_TURN)
Duel.RegisterEffect(e1_2,tp)
end end
-- --
function c1111002.op1_2(e,tp,eg,ep,ev,re,r,rp) function c1111002.op1_2(e,tp,eg,ep,ev,re,r,rp)
local lg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,63,nil) local lg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,63,nil)
if lg:GetCount()<1 then return end if lg:GetCount()<1 then return end
if Duel.SendtoDeck(lg,nil,2,REASON_EFFECT)<1 then return end if Duel.SendtoDeck(lg,nil,2,REASON_EFFECT)<1 then return end
Duel.ShuffleDeck(tp)
local num1=Duel.GetFieldGroupCount(tp,LOCATION_HAND,0) local num1=Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)
local num2=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND) local num2=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
if num1>=num2 then return end if num1>=num2 then return end
......
...@@ -93,13 +93,19 @@ end ...@@ -93,13 +93,19 @@ end
function c12004005.spop(e,tp,eg,ep,ev,re,r,rp) function c12004005.spop(e,tp,eg,ep,ev,re,r,rp)
local tt=e:GetLabel() local tt=e:GetLabel()
Duel.Draw(tp,tt,REASON_EFFECT) Duel.Draw(tp,tt,REASON_EFFECT)
if tt>0 and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,12003011,0,0x4011,800,1000,3,RACE_SEASERPENT,ATTRIBUTE_WATER,1-tp) then if tt>0 and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,12003011,0,0x4011,800,1000,3,RACE_SEASERPENT,ATTRIBUTE_WATER,POS_DEFENSE,1-tp) then
local token=Duel.CreateToken(tp,12003011) local token=Duel.CreateToken(tp,12003011)
Duel.SpecialSummonStep(token,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummonStep(token,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE)
end end
if tt-1>0 and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,12003011,0,0x4011,800,1000,3,RACE_SEASERPENT,ATTRIBUTE_WATER,1-tp) then if tt-1>0 and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,12003011,0,0x4011,800,1000,3,RACE_SEASERPENT,ATTRIBUTE_WATER,POS_DEFENSE,1-tp) then
local token=Duel.CreateToken(tp,12003011) local token=Duel.CreateToken(tp,12003011)
Duel.SpecialSummonStep(token,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummonStep(token,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL)
e1:SetValue(1)
token:RegisterEffect(e1,true)
end end
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
\ No newline at end of file
...@@ -12,7 +12,7 @@ function cm.initial_effect(c) ...@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e1:SetDescription(aux.Stringid(m,4)) e1:SetDescription(aux.Stringid(m,4))
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetRange(LOCATION_SZONE) e1:SetRange(LOCATION_SZONE)
e1:SetCondition(cm.con) e1:SetCondition(cm.con)
e1:SetTarget(cm.tg) e1:SetTarget(cm.tg)
...@@ -70,7 +70,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,7 +70,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local sel=e:GetLabel() local sel=e:GetLabel()
if sel==1 then if sel==1 then
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
......
...@@ -12,7 +12,7 @@ function cm.initial_effect(c) ...@@ -12,7 +12,7 @@ function cm.initial_effect(c)
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0) local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
if #g>0 then Duel.ConfirmCards(1-tp,g) end if #g>0 then Duel.ConfirmCards(1-tp,g) end
if g:GetClassCount(Card.GetCode)<#g then return end if g:GetClassCount(Card.GetCode)<#g then return end
local rc=rscf.GetRelationCard(e) local rc=rscf.GetFaceUpSelf(e)
if rc then if rc then
e:GetLabelObject():SetLabel(1) e:GetLabelObject():SetLabel(1)
end end
......
...@@ -86,7 +86,7 @@ function c61000000.cfilter2(c) ...@@ -86,7 +86,7 @@ function c61000000.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end end
function c61000000.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000000.drcon(e,tp,eg,ep,ev,re,r,rp)
return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(c61000000.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000000.drcon(e,tp,eg,ep,ev,re,r,rp) --function c61000000.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) -- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
......
...@@ -88,10 +88,10 @@ function c61000001.cfilter2(c) ...@@ -88,10 +88,10 @@ function c61000001.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end end
function c61000001.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000001.drcon(e,tp,eg,ep,ev,re,r,rp)
return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(c61000001.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000001.drcon(e,tp,eg,ep,ev,re,r,rp) --function c61000001.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) -- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
--end --end
function c61000001.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c61000001.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c61000001.filter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c61000001.filter,tp,LOCATION_GRAVE,0,1,nil) end
......
...@@ -95,7 +95,7 @@ function c61000002.cfilter2(c) ...@@ -95,7 +95,7 @@ function c61000002.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end end
function c61000002.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000002.drcon(e,tp,eg,ep,ev,re,r,rp)
return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(c61000002.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000002.drcon(e,tp,eg,ep,ev,re,r,rp) --function c61000002.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) -- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
......
...@@ -82,7 +82,7 @@ function c61000003.cfilter2(c) ...@@ -82,7 +82,7 @@ function c61000003.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end end
function c61000003.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000003.drcon(e,tp,eg,ep,ev,re,r,rp)
return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(c61000003.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000003.drcon(e,tp,eg,ep,ev,re,r,rp) --function c61000003.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) -- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
......
...@@ -85,7 +85,7 @@ function c61000004.cfilter2(c) ...@@ -85,7 +85,7 @@ function c61000004.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end end
function c61000004.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000004.drcon(e,tp,eg,ep,ev,re,r,rp)
return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(c61000004.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000004.drcon(e,tp,eg,ep,ev,re,r,rp) --function c61000004.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) -- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
......
...@@ -82,7 +82,7 @@ function c61000005.cfilter2(c) ...@@ -82,7 +82,7 @@ function c61000005.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end end
function c61000005.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000005.drcon(e,tp,eg,ep,ev,re,r,rp)
return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(c61000005.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000005.drcon(e,tp,eg,ep,ev,re,r,rp) --function c61000005.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) -- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
......
...@@ -72,7 +72,7 @@ function c61000006.cfilter2(c) ...@@ -72,7 +72,7 @@ function c61000006.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end end
function c61000006.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000006.drcon(e,tp,eg,ep,ev,re,r,rp)
return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(c61000006.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000006.drcon(e,tp,eg,ep,ev,re,r,rp) --function c61000006.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) -- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
......
--神器使 安托涅瓦 --神器使 安托涅瓦
local m=m local m=66560003
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--link summon --link summon
......
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