Commit 3ff64819 authored by mercury233's avatar mercury233

fix

parent 209186a9
...@@ -32,8 +32,8 @@ function c101106059.initial_effect(c) ...@@ -32,8 +32,8 @@ function c101106059.initial_effect(c)
e3:SetOperation(c101106059.drop) e3:SetOperation(c101106059.drop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c101106059.otfilter(c,tp) function c101106059.otfilter(c,e,tp)
return c:IsAbleToGrave() and Duel.GetMZoneCount(tp,c)>0 return c:IsAbleToGrave() and not c:IsImmuneToEffect(e) and Duel.GetMZoneCount(tp,c)>0
end end
function c101106059.otfilter2(c,e) function c101106059.otfilter2(c,e)
return c:IsAbleToGrave() and not c:IsImmuneToEffect(e) return c:IsAbleToGrave() and not c:IsImmuneToEffect(e)
...@@ -42,7 +42,7 @@ function c101106059.otcon(e,c,minc) ...@@ -42,7 +42,7 @@ function c101106059.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return minc<=2 return minc<=2
and Duel.IsExistingMatchingCard(c101106059.otfilter,tp,LOCATION_MZONE,0,1,nil,tp) and Duel.IsExistingMatchingCard(c101106059.otfilter,tp,LOCATION_MZONE,0,1,nil,e,tp)
and Duel.IsExistingMatchingCard(c101106059.otfilter2,tp,0,LOCATION_ONFIELD,1,nil,e) and Duel.IsExistingMatchingCard(c101106059.otfilter2,tp,0,LOCATION_ONFIELD,1,nil,e)
end end
function c101106059.ottg(e,c) function c101106059.ottg(e,c)
...@@ -51,11 +51,11 @@ function c101106059.ottg(e,c) ...@@ -51,11 +51,11 @@ function c101106059.ottg(e,c)
end end
function c101106059.otop(e,tp,eg,ep,ev,re,r,rp,c) function c101106059.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=Duel.SelectMatchingCard(tp,c101106059.otfilter,tp,LOCATION_MZONE,0,1,1,nil,tp) local g1=Duel.SelectMatchingCard(tp,c101106059.otfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g2=Duel.SelectMatchingCard(tp,c101106059.otfilter2,tp,0,LOCATION_ONFIELD,1,1,nil,e) local g2=Duel.SelectMatchingCard(tp,c101106059.otfilter2,tp,0,LOCATION_ONFIELD,1,1,nil,e)
g1:Merge(g2) g1:Merge(g2)
Duel.SendtoGrave(g1,REASON_COST) Duel.SendtoGrave(g1,REASON_EFFECT)
c:SetMaterial(nil) c:SetMaterial(nil)
end end
function c101106059.drfilter(c) function c101106059.drfilter(c)
......
...@@ -7,6 +7,7 @@ function c101106069.initial_effect(c) ...@@ -7,6 +7,7 @@ function c101106069.initial_effect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TODECK+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,101106069+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c101106069.target) e1:SetTarget(c101106069.target)
e1:SetOperation(c101106069.operation) e1:SetOperation(c101106069.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
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