Commit 08eb37a9 authored by DailyShana's avatar DailyShana

fix

parent 4527e030
...@@ -77,8 +77,9 @@ function c31833038.cttg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -77,8 +77,9 @@ function c31833038.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,tc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_CONTROL,tc,1,0,0)
end end
function c31833038.ctop(e,tp,eg,ep,ev,re,r,rp) function c31833038.ctop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttackTarget()
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local tc=Duel.GetAttackTarget()
if tc then if tc then
local zone=bit.band(c:GetLinkedZone(),0x1f) local zone=bit.band(c:GetLinkedZone(),0x1f)
if Duel.GetControl(tc,tp,0,0,zone)~=0 then if Duel.GetControl(tc,tp,0,0,zone)~=0 then
......
...@@ -3,7 +3,7 @@ function c64734090.initial_effect(c) ...@@ -3,7 +3,7 @@ function c64734090.initial_effect(c)
--search --search
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(64734090,0)) e1:SetDescription(aux.Stringid(64734090,0))
e1:SetCategory(CATEGORY_TOHAND) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetTarget(c64734090.tg) e1:SetTarget(c64734090.tg)
...@@ -18,11 +18,10 @@ function c64734090.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -18,11 +18,10 @@ function c64734090.tg(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 c64734090.op(e,tp,eg,ep,ev,re,r,rp) function c64734090.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c64734090.filter,tp,LOCATION_DECK,0,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c64734090.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.SendtoHand(g,nil,REASON_EFFECT)
local sg=g:Select(tp,1,1,nil) Duel.ConfirmCards(1-tp,g)
Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end end
end end
...@@ -102,5 +102,7 @@ function c85216896.retcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,5 +102,7 @@ function c85216896.retcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c85216896.retop(e,tp,eg,ep,ev,re,r,rp) function c85216896.retop(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject():Filter(c85216896.retfilter,nil) local g=e:GetLabelObject():Filter(c85216896.retfilter,nil)
Duel.ReturnToField(g) for tc in aux.Next(g) do
Duel.ReturnToField(tc)
end
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