Commit 3ff64819 authored by mercury233's avatar mercury233

fix

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