Commit db4370ca authored by GuGu's avatar GuGu

Update c60605.lua

parent b6c9471d
Pipeline #40345 passed with stage
in 1 minute and 20 seconds
--梅雨的黄伞-芒种
function c60605.initial_effect(c)
--umb
--umb
local custom_code=aux.RegisterMergedDelayedEvent_ToSingleCard(c,id,EVENT_TO_HAND)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(60605,0))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_TO_HAND)
e1:SetCode(custom_code)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c60605.condition)
......@@ -44,9 +45,10 @@ function c60605.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end
function c60605.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:GetCount()>0 end
Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,eg,eg:GetCount(),1-tp,0)
local sg=eg:Filter(c60605.cfilter,nil,1-tp)
if chk==0 then return sg:GetCount()>0 end
Duel.SetTargetCard(sg)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,sg,sg:GetCount(),1-tp,0)
end
function c60605.filter(c,e,tp)
return c:IsRelateToEffect(e) and c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK)
......
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