Commit 21b6f08b authored by GuGu's avatar GuGu

Update c27085.lua 饼梦亡语

parent 07693519
......@@ -41,9 +41,7 @@ function c27085.initial_effect(c)
e3:SetDescription(aux.Stringid(27085,2))
e3:SetCategory(CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetCode(EVENT_DESTROY)
e3:SetCode(EVENT_DESTROYED)
e3:SetLabelObject(e0)
e3:SetTarget(c27085.thtg)
e3:SetOperation(c27085.thop)
......@@ -112,18 +110,22 @@ function c27085.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
-- local g = e:GetHandler():GetOverlayGroup()
local e0 = e:GetLabelObject()
local g = e0:GetLabelObject()
if chk==0 then return g and g:GetCount()>0 end
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
if chk==0 then return true end
if g and g:GetCount()>0 then
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
end
end
function c27085.thop(e,tp,eg,ep,ev,re,r,rp)
-- local g = e:GetHandler():GetOverlayGroup()
local e0 = e:GetLabelObject()
local g = e0:GetLabelObject()
-- Duel.Recover(0,g:GetCount(),0x40)
local tg=g:Filter(Card.IsRelateToEffect,nil,e)
if tg:GetCount()>0 and Duel.SendtoHand(tg,nil,REASON_EFFECT)>0 then
Duel.ConfirmCards(1-tp,tg)
if g and g:GetCount()>0 then
local tg=g:Filter(Card.IsRelateToEffect,nil,e)
if tg:GetCount()>0 and Duel.SendtoHand(tg,nil,REASON_EFFECT)>0 then
Duel.ConfirmCards(1-tp,tg)
end
end
end
function c27085.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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