Commit 13d1e935 authored by wyykak's avatar wyykak

Merge branch 'patch-3' into 'master'

Update c27085.lua 饼梦亡语

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