Commit 9ea3dd38 authored by Tachibana's avatar Tachibana

ndyd

parent 1b546d19
Pipeline #4569 passed with stages
in 19 minutes
......@@ -44,11 +44,11 @@ function c10902012.qfilter(c)
return c:IsFaceup()
end
function c10902012.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and cm.qfilter(chkc) end
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c10902012.qfilter(chkc) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingTarget(cm.qfilter,tp,LOCATION_MZONE,0,1,e:GetHandler()) end
and Duel.IsExistingTarget(c10902012.qfilter,tp,LOCATION_MZONE,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.SelectTarget(tp,cm.qfilter,tp,LOCATION_MZONE,0,1,1,e:GetHandler())
Duel.SelectTarget(tp,c10902012.qfilter,tp,LOCATION_MZONE,0,1,1,e:GetHandler())
end
function c10902012.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -63,7 +63,7 @@ function c10902012.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetValue(cm.eqlimit)
e1:SetValue(c10902012.eqlimit)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
......
......@@ -13,7 +13,8 @@ function c10969989.initial_effect(c)
c:RegisterEffect(e2)
end
function c10969989.handcon(e)
return Duel.GetLP(tp)<Duel.GetLP(1-tp) and Duel.GetTurnPlayer()==e:GetHandlerPlayer()
local tp=e:GetHandlerPlayer()
return Duel.GetLP(tp)<Duel.GetLP(1-tp) and Duel.GetTurnPlayer()==tp
end
function c10969989.condition(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasCategory(CATEGORY_DISABLE_SUMMON) or re:IsHasCategory(CATEGORY_NEGATE) or re:IsHasCategory(CATEGORY_DISABLE) or re:IsHasCategory(CATEGORY_DESTROY) or re:IsHasCategory(CATEGORY_REMOVE)
......
......@@ -31,7 +31,7 @@ function c20000004.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.IsExistingMatchingCard(c20000004.tgf1,tp,LOCATION_DECK,0,1,nil,e,tp)
and Duel.IsExistingTarget(c20000004.cof2,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local tc=Duel.SelectTarget(tp,c20000004.cof2,tp,LOCATION_ONFIELD,0,1,1,nil)
local tc=Duel.SelectTarget(tp,c20000004.cof2,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,tp,LOCATION_ONFIELD)
end
......
......@@ -95,7 +95,7 @@ function c20000010.op3(e,tp,eg,ep,ev,re,r,rp)
end
function c20000010.optgf1(c,seq2)
local seq1=aux.MZoneSequence(c:GetSequence())
return c:IsFaceup() and seq1==4-seq2
return c:IsFaceup() and seq1==4-seq2 and c:GetFlagEffect(20000010)~=0
end
function c20000010.optg1(e,tp,eg,ep,ev,re,r,rp,chk)
local loc,seq=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_SEQUENCE)
......
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