Commit fa140797 authored by POLYMER's avatar POLYMER

fix

parent 510bc461
...@@ -34,7 +34,7 @@ function c43387890.initial_effect(c) ...@@ -34,7 +34,7 @@ function c43387890.initial_effect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE) e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE)
e3:SetRange(LOCATION_PZONE) e3:SetRange(LOCATION_PZONE)
e3:SetTargetRange(1,0) e3:SetTargetRange(1,0)
e3:SetTarget(c43387890.splimit2) e3:SetTarget(c43387890.splimit2)
......
...@@ -155,7 +155,7 @@ function cm.bcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -155,7 +155,7 @@ function cm.bcon(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.btg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.btg(e,tp,eg,ep,ev,re,r,rp,chk)
local tg=e:GetLabelObject():GetLabelObject() local tg=e:GetLabelObject():GetLabelObject()
if chk==0 then return aux.GetValueType(tg)=="Group"and #tg>0 end if chk==0 then return tg and aux.GetValueType(tg)=="Group"and #tg>0 end
end end
function cm.bop(e,tp,eg,ep,ev,re,r,rp) function cm.bop(e,tp,eg,ep,ev,re,r,rp)
local tg=e:GetLabelObject():GetLabelObject() local tg=e:GetLabelObject():GetLabelObject()
......
...@@ -30,6 +30,9 @@ end ...@@ -30,6 +30,9 @@ end
function cm.fil1(c) function cm.fil1(c)
return c:IsDiscardable() return c:IsDiscardable()
end end
function cm.fil2(c)
return aux.IsCodeListed(c,60000163) and c:IsSSetable() and not c:GetType()==TYPE_SPELL and not c:IsCode(m)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=false local b1=false
local b2=false local b2=false
......
...@@ -46,18 +46,17 @@ function cm.initial_effect(c) ...@@ -46,18 +46,17 @@ function cm.initial_effect(c)
e4:SetOperation(cm.spop2) e4:SetOperation(cm.spop2)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function cm.spcon(e,c) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
if c==nil then return true end local ct=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)
return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0 return ct==0
and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function cm.spfilter(c)
return c:IsFaceup() and c:IsSetCard(0x1275)
end end
function cm.spcon2(e,c) function cm.spcon2(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cm.spfilter,c:GetControler(),LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(cm.spfilter1,c:GetControler(),LOCATION_MZONE,0,1,nil)
end
function cm.spfilter1(c)
return c:IsFaceup() and c:IsSetCard(0x1275)
end end
function cm.spcon1(e,tp,eg,ep,ev,re,r,rp) function cm.spcon1(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0
......
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