Commit 08d9a146 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 8e7293db
No preview for this file type
......@@ -19,6 +19,7 @@ function c11601345.initial_effect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_REMOVE)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,11601345+1)
e2:SetCondition(c11601345.spcon)
e2:SetTarget(c11601345.sptg)
......
......@@ -137,14 +137,14 @@ function s.setop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=g1:Select(tp,3,3,nil)
if g:GetCount()>0 then
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT)
end
end
if op==2 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local dg=g2:Select(tp,3,3,nil)
if dg:GetCount()>0 then
Duel.SendtoDeck(dg,1-tp,SEQ_DECKSHUFFLE,REASON_EFFECT)
Duel.SendtoDeck(dg,tp,SEQ_DECKSHUFFLE,REASON_EFFECT)
end
end
end
......
......@@ -19,6 +19,7 @@ function s.specialsum(c)
e1:SetOperation(s.spsop)
c:RegisterEffect(e1)
end
end
function s.descheck(c,tp)
return c:IsFaceup() and c:IsRace(RACE_ROCK) and Duel.GetMZoneCount(tp,c)>0
end
......@@ -49,14 +50,13 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
Duel.BreakEffect()
for i=0,1 do
local ct=Duel.GetMatchingGroup(s.rockcheck,p,LOCATION_MZONE,0,nil)
if Duel.Recover(p,ct*800,REASON_EFFECT)==0 and Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
local ct=Duel.GetMatchingGroup(s.rockcheck,i,LOCATION_MZONE,0,nil)
if Duel.Recover(i,ct*800,REASON_EFFECT)==0 and Duel.IsExistingMatchingCard(s.tgfilter,i,LOCATION_DECK,0,1,nil) then
Duel.Hint(HINT_SELECTMSG,i,HINTMSG_ATOHAND)
local sg=Duel.SelectMatchingCard(tp,s.tgfilter,i,LOCATION_DECK,0,1,1,nil)
if sg:GetCount()>0 then
Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end
Duel.ConfirmCards(1-i,sg)
end
end
end
......
......@@ -31,6 +31,11 @@ function cm.initial_effect(c)
e1:SetTarget(s.eqtg)
e1:SetOperation(s.eqop)
c:RegisterEffect(e1)
local e4=e1:Clone()
e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_FREE_CHAIN)
e4:SetCondition(s.actlimcon)
c:RegisterEffect(e4)
--to hand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
......@@ -44,6 +49,11 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function s.actlimcon(e)
local ph=Duel.GetCurrentPhase()
local tp=e:GetHandlerPlayer()
return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE
end
function s.eqcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
......
......@@ -42,7 +42,7 @@ function cm.initial_effect(c)
end
function cm.filter(c)
return c:IsSetCard(0xa327) and c:IsAbleToHand()
return c:IsSetCard(0xa327) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) 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