Commit 82e5a288 authored by 聖園ミカ's avatar 聖園ミカ 🐟

reclean

parent 21db1a17
expansions/pics/81024033.jpg

74 KB | W: | H:

expansions/pics/81024033.jpg

88.7 KB | W: | H:

expansions/pics/81024033.jpg
expansions/pics/81024033.jpg
expansions/pics/81024033.jpg
expansions/pics/81024033.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -104,6 +104,6 @@ function cm.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
Duel.SSet(tp,c)
Duel.ConfirmCards(1-tp,g)
Duel.ConfirmCards(1-tp,c)
end
end
\ No newline at end of file
......@@ -58,6 +58,7 @@ function cm.initial_effect(c)
e5:SetTargetRange(0,1)
e5:SetCondition(cm.effcon)
e5:SetLabel(8)
e5:SetTarget(cm.costtg1)
e5:SetCost(cm.costchk)
e5:SetOperation(cm.costop)
c:RegisterEffect(e5)
......@@ -83,6 +84,10 @@ function cm.initial_effect(c)
e7:SetOperation(cm.ssop)
c:RegisterEffect(e7)
end
function cm.costtg1(e,te,tp)
e:SetLabelObject(te:GetHandler())
return true
end
function cm.mfilter(c,xyzc)
return c:IsXyzType(TYPE_LINK)
end
......@@ -127,7 +132,8 @@ function cm.costchk2(e,te_or_c,tp,re)
end
function cm.costop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeckAsCost,tp,LOCATION_HAND,0,1,1,re:GetHandler())
local tc=e:GetLabelObject()
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeckAsCost,tp,LOCATION_HAND,0,1,1,tc)
Duel.SendtoHand(g,nil,REASON_COST)
end
function cm.sscost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -32,6 +32,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
......
......@@ -27,7 +27,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.filter(c)
return c:IsType(TYPE_TRAP) and c:IsType(TYPE_CONTINUOUS) and c:IsSSetable()
return c:IsType(TYPE_TRAP) and c:IsType(TYPE_CONTINUOUS) and c:IsSSetable() and not c:IsCode(m)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.filter(chkc) end
......@@ -42,10 +42,11 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SSet(tp,tc)~=0 then
if tc:IsSetCard(0x9f93) then
local e1=Effect.CreateEffect(e:GetHandler())
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
......
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