Commit 3d54814b authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 92d89d55
No preview for this file type
...@@ -13,6 +13,7 @@ function c33310203.initial_effect(c) ...@@ -13,6 +13,7 @@ function c33310203.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--Activate --Activate
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(33310201,2))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_TO_HAND) e2:SetCode(EVENT_TO_HAND)
...@@ -27,7 +28,7 @@ function c33310203.initial_effect(c) ...@@ -27,7 +28,7 @@ function c33310203.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c33310203.thcon(e,tp,eg,ep,ev,re,r,rp) function c33310203.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousPosition(POS_FACEUP) and e:GetHandler():IsReason(REASON_EFFECT) return e:GetHandler():IsReason(REASON_EFFECT)-- and e:GetHandler():IsPreviousPosition(POS_FACEUP)
end end
function c33310203.filter(c) function c33310203.filter(c)
return c:IsSetCard(0x551) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:IsCode(33310203) return c:IsSetCard(0x551) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:IsCode(33310203)
...@@ -37,6 +38,8 @@ function c33310203.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,6 +38,8 @@ function c33310203.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c33310203.thop(e,tp,eg,ep,ev,re,r,rp) function c33310203.thop(e,tp,eg,ep,ev,re,r,rp)
local gc=e:GetHandler()
Duel.ConfirmCards(1-tp,gc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c33310203.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c33310203.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
......
...@@ -58,7 +58,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end end
--e2 --e2
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0xa12) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0xa82) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0xa82) local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0xa82)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end 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