Commit d06fb18e authored by Tachibana's avatar Tachibana

ybb

parent e5f695ce
Pipeline #10826 canceled with stages
......@@ -56,7 +56,8 @@ function cm.splimit(e,se,sp,st)
return se:IsHasType(EFFECT_TYPE_ACTIONS)
end
function cm.condition(e,tp)
return Duel.GetCurrentChain()==0
return Duel.GetTurnPlayer()==tp and Duel.GetCurrentChain()==0
and ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thcheck,tp,LOCATION_EXTRA,0,1,nil) end
......@@ -85,7 +86,7 @@ function cm.thop(e,tp)
end
function cm.regop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
if tc:IsSummonPlayer(tp) and tc:IsSummonType(SUMMON_TYPE_ADVANCE) and tc:IsSetCard(0xccb) and c:IsFaceup() then
if tc:IsSummonPlayer(tp) and tc:IsSummonType(SUMMON_TYPE_ADVANCE) and tc:IsSetCard(0xccb) and tc:IsFaceup() then
e:GetLabelObject():Reset()
e:Reset()
end
......
......@@ -44,6 +44,9 @@ function cm.initial_effect(c)
e3:SetOperation(cm.disop)
c:RegisterEffect(e3)
end
function cm.synfilter(c)
return c:IsType(TYPE_TUNER) and c:IsRace(RACE_ZOMBIE)
end
function cm.imcon(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
......
......@@ -144,9 +144,9 @@ function c9310054.tgop(e,tp,eg,ep,ev,re,r,rp)
local hg=Duel.GetFieldGroup(tp,0,LOCATION_HAND)
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND+LOCATION_ONFIELD)
Duel.ConfirmCards(tp,hg)
if not Duel.IsExistingMatchingCard(c9310054.thfilter2,tp,0,LOCATION_HAND+LOCATION_ONFIELD,1,nil) then Duel.ShuffleHand(1-tp) return end
local kg=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOHAND)
if not Duel.IsExistingMatchingCard(c9310054.thfilter2,tp,0,LOCATION_HAND+LOCATION_ONFIELD,1,nil,tp) then Duel.ShuffleHand(1-tp) return end
local kg=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
if kg:GetCount()>0 then
Duel.HintSelection(kg)
Duel.SendtoHand(kg,nil,REASON_EFFECT)
......
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