Commit 20f1d43f authored by Huangnan's avatar Huangnan

fix

parent cc225799
Pipeline #29878 passed with stages
in 30 minutes and 34 seconds
......@@ -75,7 +75,7 @@ function c21185825.gf(c,lc,sg)
end
function c21185825.LCheckGoal(sg,tp,lc,lmat)
return #sg>=4
and sg:IsExists(c21185825.gf,1,nil,cl,sg)
and sg:IsExists(c21185825.gf,1,nil,lc,sg)
and sg:CheckWithSumEqual(aux.GetLinkCount,5,#sg,#sg)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0
and not sg:IsExists(aux.LUncompatibilityFilter,1,nil,sg,lc,tp)
......@@ -85,12 +85,12 @@ function c21185825.LCheckGoal2(sg,tp,lc,lmat)
return #sg==1
and sg:IsExists(c21185825.onlycheck,1,nil,lc,sg)
or #sg>=4
and sg:IsExists(c21185825.gf,1,nil,cl,sg)
and sg:IsExists(c21185825.gf,1,nil,lc,sg)
and sg:CheckWithSumEqual(aux.GetLinkCount,5,#sg,#sg)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0
and not sg:IsExists(aux.LUncompatibilityFilter,1,nil,sg,lc,tp)
and (not lmat or sg:IsContains(lmat))
and #sg==sg:Filter(Card.IsLinkType,nil)
and #sg==sg:Filter(Card.IsLinkType,nil,TYPE_EFFECT)
end
function c21185825.linkcon()
return function(e,c,og,lmat,min,max)
......
......@@ -16,7 +16,7 @@ function cm.initial_effect(c)
--tohand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,1))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_DRAW)
e1:SetCategory(CATEGORY_COUNTER)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
......
......@@ -40,9 +40,10 @@ function c9310049.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c9310049.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c9310049.thfilter),tp,LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c9310049.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
if #g>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c9310049.tnval(e,c)
......
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