Commit 306fe320 authored by DailyShana's avatar DailyShana

fix

parent 8e609c44
......@@ -48,13 +48,12 @@ function c42461852.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function c42461852.spop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsPlayerCanSpecialSummon(tp) or Duel.GetLocationCountFromEx(tp)<=0
if not Duel.IsPlayerCanSpecialSummon(tp)
or Duel.GetMatchingGroupCount(Card.IsFacedown,tp,LOCATION_EXTRA,0,nil)==0 then return end
Duel.ShuffleExtra(tp)
Duel.ConfirmExtratop(tp,1)
local tc=Duel.GetExtraTopGroup(tp,1):GetFirst()
if tc:IsType(TYPE_LINK) and tc:IsRace(RACE_CYBERSE)
and Duel.GetLocationCountFromEx(tp,tp,nil,tc)>0 and tc:IsCanBeSpecialSummoned(e,0,tp,false,false) then
if tc:IsType(TYPE_LINK) and tc:IsRace(RACE_CYBERSE) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
......@@ -5,7 +5,6 @@ function c6579928.initial_effect(c)
e1:SetDescription(aux.Stringid(6579928,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetTarget(c6579928.thtg)
e1:SetOperation(c6579928.thop)
......
......@@ -37,8 +37,6 @@ end
function c6795211.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)>0
or Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c6795211.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
......
......@@ -17,7 +17,7 @@ function c96012004.initial_effect(c)
e2:SetRange(LOCATION_SZONE)
e2:SetCondition(c96012004.coincon)
e2:SetOperation(c96012004.coinop)
e2:SetLabel(1)
e2:SetLabel(2)
c:RegisterEffect(e2)
end
function c96012004.coincon(e,tp,eg,ep,ev,re,r,rp)
......@@ -34,14 +34,15 @@ function c96012004.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
if cc==1 then return end
local te=Duel.GetChainInfo(cc-1,CHAININFO_TRIGGERING_EFFECT)
local ex,eg,et,cp,ct=Duel.GetOperationInfo(cc-1,CATEGORY_COIN)
if ex and ct==1 and te:IsActiveType(TYPE_MONSTER) then
if ex and ct==1 and te:IsActiveType(TYPE_MONSTER) and Duel.SelectYesNo(tp,94) then
e:SetLabel(1)
e:SetLabelObject(te)
end
end
function c96012004.coinop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if e:GetLabel()==0 or not c:IsRelateToEffect(e) then return end
if e:GetLabel()==0 then return end
if e:GetLabel()==2 and Duel.GetCurrentChain()~=ev+1 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_COIN)
local res=1-Duel.SelectOption(tp,60,61)
local e1=Effect.CreateEffect(c)
......
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