Commit 9dad27ce authored by POLYMER's avatar POLYMER

fix

parent 57c19a56
No preview for this file type
......@@ -59,10 +59,10 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function cfilter(c)
function s.cfilter(c)
return c:IsLevel(8) and c:IsFaceup() and c:IsRace(RACE_FAIRY)
end
function rmfilter(c)
function s.rmfilter(c)
return not (c:IsStatus(STATUS_SPSUMMON_TURN) or c:IsStatus(STATUS_SUMMON_TURN)
or c:IsStatus(STATUS_FLIP_SUMMON_TURN)) or c:IsFacedown()
end
......
......@@ -43,11 +43,14 @@ function c9910431.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local cg=Duel.SelectMatchingCard(tp,c9910431.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil)
Duel.Remove(cg,POS_FACEUP,REASON_COST)
end
function c9910431.disfilter(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT)
end
function c9910431.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and aux.NegateEffectMonsterFilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,nil) end
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c9910431.disfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c9910431.disfilter,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local g=Duel.SelectTarget(tp,aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,1,nil)
local g=Duel.SelectTarget(tp,c9910431.disfilter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,1,0,0)
end
function c9910431.disop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -83,7 +83,10 @@ function c9911370.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function c9911370.filter1(c,tp)
return c:IsFaceup() and Duel.IsExistingTarget(aux.NegateEffectMonsterFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and Duel.IsExistingTarget(c9911370.filter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,c)
end
function c9911370.filter2(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT)
end
function c9911370.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
......@@ -91,17 +94,17 @@ function c9911370.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,c9911370.filter1,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,aux.NegateEffectMonsterFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,g)
Duel.SelectTarget(tp,c9911370.filter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,g)
end
function c9911370.filter2(c,e)
return c:IsRelateToEffect(e) and c:IsFaceup()
end
function c9911370.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(c9911370.filter2,nil,e)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e):Filter(Card.IsFaceup,nil)
if #g==2 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local tc1=g:FilterSelect(tp,aux.NegateEffectMonsterFilter,1,1,nil):GetFirst()
local tc1=g:Select(tp,1,1,nil):GetFirst()
if tc1 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
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