Commit 45ec0ab3 authored by Amiya's avatar Amiya

黄金柜新卡和艾克佐迪亚新卡修复

parent 4aeb3b2c
Pipeline #25692 passed with stages
in 56 seconds
......@@ -11,7 +11,6 @@ function s.initial_effect(c)
e1:SetOperation(s.activate)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_LEAVE_GRAVE+CATEGORY_TODECK)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_GRAVE)
e2:SetCode(EVENT_FREE_CHAIN)
......@@ -60,7 +59,7 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
else
e:SetCategory(CATEGORY_TODECK)
e:SetCategory(CATEGORY_LEAVE_GRAVE+CATEGORY_TODECK)
end
end
function s.thop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -37,6 +37,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
local ct=Duel.Destroy(g,REASON_EFFECT)
if Duel.IsExistingMatchingCard(s.cfilter2,tp,LOCATION_ONFIELD,0,1,nil) then
Duel.BreakEffect()
Duel.Damage(1-tp,ct*500,REASON_EFFECT)
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