Commit faa79a97 authored by POLYMER's avatar POLYMER

fix

parent 1446a593
......@@ -48,8 +48,30 @@ function c60153207.initial_effect(c)
e2:SetCost(c60153207.e2cost)
e2:SetOperation(c60153207.e2op)
c:RegisterEffect(e2)
--cannot material
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e5:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL)
e5:SetValue(c60153207.fuslimit)
c:RegisterEffect(e5)
local e6=e5:Clone()
e6:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
e6:SetValue(1)
c:RegisterEffect(e6)
local e7=e6:Clone()
e7:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL)
c:RegisterEffect(e7)
local e8=e6:Clone()
e8:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL)
c:RegisterEffect(e8)
end
function c60153207.fuslimit(e,c,sumtype)
return sumtype==SUMMON_TYPE_FUSION
end
function c60153207.mfilter(c,fc,sub,mg,sg)
return c:IsFusionSetCard(0x3b2a) and (not sg or not sg:IsExists(Card.IsCode,1,c,c:GetCode()))
end
......@@ -133,7 +155,8 @@ end
function c60153207.e2cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local eqg=c:GetEquipGroup()
if chk==0 then return eqg:IsExists(c60153207.e2costf,1,nil,tp) end
if chk==0 then return eqg:IsExists(c60153207.e2costf,1,nil,tp) and c:GetFlagEffect(60153207)==0 end
c:RegisterFlagEffect(60153207,RESET_CHAIN,0,1)
end
function c60153207.e2opf(c,tp)
return c:IsControler(1-tp)
......@@ -141,35 +164,37 @@ end
function c60153207.e2op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local eqg=c:GetEquipGroup()
local g=eqg:FilterSelect(tp,c60153207.e2costf,1,1,nil,tp)
local tc=g:GetFirst()
local g2=tc:GetColumnGroup()
local g3=g2:Filter(c60153207.e2opf,nil,tp)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_DISABLE)
e4:SetTargetRange(0,LOCATION_ONFIELD)
e4:SetTarget(c60153207.distg)
e4:SetReset(RESET_PHASE+PHASE_END)
e4:SetLabel(tc:GetSequence(),tc:GetFieldID())
Duel.RegisterEffect(e4,tp)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e5:SetCode(EVENT_CHAIN_SOLVING)
e5:SetOperation(c60153207.disop)
e5:SetReset(RESET_PHASE+PHASE_END)
e5:SetLabel(tc:GetSequence())
Duel.RegisterEffect(e5,tp)
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_FIELD)
e6:SetCode(EFFECT_DISABLE_TRAPMONSTER)
e6:SetTargetRange(0,LOCATION_ONFIELD)
e6:SetTarget(c60153207.distg)
e6:SetReset(RESET_PHASE+PHASE_END)
e6:SetLabel(tc:GetSequence())
Duel.RegisterEffect(e6,tp)
Duel.Hint(HINT_ZONE,tp,0x1<<(tc:GetSequence()+8))
Duel.SendtoGrave(tc,REASON_EFFECT)
if eqg:GetCount()>0 then
local g=eqg:FilterSelect(tp,c60153207.e2costf,1,1,nil,tp)
local tc=g:GetFirst()
local g2=tc:GetColumnGroup()
local g3=g2:Filter(c60153207.e2opf,nil,tp)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_DISABLE)
e4:SetTargetRange(0,LOCATION_ONFIELD)
e4:SetTarget(c60153207.distg)
e4:SetReset(RESET_PHASE+PHASE_END)
e4:SetLabel(tc:GetSequence(),tc:GetFieldID())
Duel.RegisterEffect(e4,tp)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e5:SetCode(EVENT_CHAIN_SOLVING)
e5:SetOperation(c60153207.disop)
e5:SetReset(RESET_PHASE+PHASE_END)
e5:SetLabel(tc:GetSequence())
Duel.RegisterEffect(e5,tp)
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_FIELD)
e6:SetCode(EFFECT_DISABLE_TRAPMONSTER)
e6:SetTargetRange(0,LOCATION_ONFIELD)
e6:SetTarget(c60153207.distg)
e6:SetReset(RESET_PHASE+PHASE_END)
e6:SetLabel(tc:GetSequence())
Duel.RegisterEffect(e6,tp)
Duel.Hint(HINT_ZONE,tp,0x1<<(tc:GetSequence()+8))
Duel.SendtoGrave(tc,REASON_EFFECT)
end
end
function c60153207.distg(e,c)
local seq,fid=e:GetLabel()
......
......@@ -34,8 +34,29 @@ function c60153208.initial_effect(c)
e2:SetCost(c60153208.e2cost)
e2:SetOperation(c60153208.e2op)
c:RegisterEffect(e2)
--cannot material
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e5:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL)
e5:SetValue(c60153208.fuslimit)
c:RegisterEffect(e5)
local e6=e5:Clone()
e6:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
e6:SetValue(1)
c:RegisterEffect(e6)
local e7=e6:Clone()
e7:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL)
c:RegisterEffect(e7)
local e8=e6:Clone()
e8:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL)
c:RegisterEffect(e8)
end
function c60153208.fuslimit(e,c,sumtype)
return sumtype==SUMMON_TYPE_FUSION
end
function c60153208.mfilter(c,fc,sub,mg,sg)
return c:IsFusionSetCard(0x3b2a) and (not sg or not sg:IsExists(Card.IsCode,1,c,c:GetCode()))
end
......@@ -126,7 +147,8 @@ end
function c60153208.e2cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local eqg=c:GetEquipGroup()
if chk==0 then return eqg:IsExists(c60153208.e2costf,1,nil,tp) end
if chk==0 then return eqg:IsExists(c60153208.e2costf,1,nil,tp) and c:GetFlagEffect(60153208)==0 end
c:RegisterFlagEffect(60153208,RESET_CHAIN,0,1)
end
function c60153208.e2opf(c,tp)
return c:IsControler(1-tp)
......@@ -134,7 +156,7 @@ end
function c60153208.e2op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local eqg=c:GetEquipGroup()
if eqg>0 then
if eqg:GetCount()>0 then
local g=eqg:FilterSelect(tp,c60153208.e2costf,1,1,nil,tp)
local tc=g:GetFirst()
local g2=tc:GetColumnGroup()
......
......@@ -31,14 +31,14 @@ function c60153216.filter2(c,e,tp,code)
end
function c60153216.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c60153216.filter,tp,LOCATION_MZONE,0,1,nil,e,tp) end
local g=Duel.GetMatchingGroup(c60153216.filter,tp,LOCATION_MZONE,0,nil)
local g=Duel.GetMatchingGroup(c60153216.filter,tp,LOCATION_MZONE,0,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_REMOVED)
end
function c60153216.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c60153216.filter,tp,LOCATION_MZONE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c60153216.filter,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
local tc=g:GetFirst()
if tc then
Duel.HintSelection(g)
......
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