Commit 45ec0ab3 authored by Amiya's avatar Amiya

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

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