Commit aef03d88 authored by Huangnan's avatar Huangnan

fix

parent c15be0b9
Pipeline #40444 failed with stages
in 2 minutes and 40 seconds
No preview for this file type
expansions/pics/93378018.jpg

72.3 KB | W: | H:

expansions/pics/93378018.jpg

296 KB | W: | H:

expansions/pics/93378018.jpg
expansions/pics/93378018.jpg
expansions/pics/93378018.jpg
expansions/pics/93378018.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/93378021.jpg

75.7 KB | W: | H:

expansions/pics/93378021.jpg

319 KB | W: | H:

expansions/pics/93378021.jpg
expansions/pics/93378021.jpg
expansions/pics/93378021.jpg
expansions/pics/93378021.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -3,6 +3,7 @@ function c93378018.initial_effect(c) ...@@ -3,6 +3,7 @@ function c93378018.initial_effect(c)
aux.AddCodeList(c,93378021) aux.AddCodeList(c,93378021)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(93378018,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
...@@ -12,7 +13,7 @@ function c93378018.initial_effect(c) ...@@ -12,7 +13,7 @@ function c93378018.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon --spsummon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(93378018,0)) e2:SetDescription(aux.Stringid(93378018,1))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
...@@ -23,10 +24,10 @@ function c93378018.initial_effect(c) ...@@ -23,10 +24,10 @@ function c93378018.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c93378018.thfilter(c) function c93378018.thfilter(c)
return c:IsRace(RACE_AQUA) and c:IsAbleToHand() return ((c:IsSetCard(0xfcb) and c:IsType(TYPE_MONSTER)) or c:IsCode(93378021)) and c:IsAbleToHand()
end end
function c93378018.filter(c) function c93378018.filter(c)
return c:IsCode(93378021) and c:IsAbleToHand() return c:IsAbleToRemove()
end end
function c93378018.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c93378018.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c93378018.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c93378018.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -36,16 +37,11 @@ function c93378018.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,16 +37,11 @@ function c93378018.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c93378018.thfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c93378018.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
if Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 and Duel.ConfirmCards(1-tp,g)~=0 then if Duel.SendtoHand(g,nil,REASON_EFFECT)~=0 and Duel.ConfirmCards(1-tp,g)~=0 and Duel.IsExistingMatchingCard(c93378018.filter,tp,LOCATION_HAND,0,1,nil) then
local tc=g:GetFirst() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
if tc:IsSetCard(0x3fcb) and Duel.IsExistingMatchingCard(c93378018.filter,tp,LOCATION_DECK,0,1,nil) local tg=Duel.SelectMatchingCard(tp,c93378018.filter,tp,LOCATION_HAND,0,1,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(93378018,1)) then local tc=tg:GetFirst()
Duel.BreakEffect() Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg=Duel.SelectMatchingCard(tp,c93378018.filter,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoHand(tg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tg)
end
end end
end end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -46,13 +46,13 @@ function c93378021.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,13 +46,13 @@ function c93378021.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c93378021.spfilter(c,e,tp) function c93378021.spfilter(c,e,tp)
return c:IsSetCard(0xfcb) and not c:IsType(TYPE_FUSION) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (c:IsSetCard(0xfcb) and not c:IsType(TYPE_FUSION)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c93378021.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c93378021.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c93378021.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c93378021.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c93378021.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c93378021.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c93378021.spop(e,tp,eg,ep,ev,re,r,rp) function c93378021.spop(e,tp,eg,ep,ev,re,r,rp)
......
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