Commit 33e57164 authored by POLYMER's avatar POLYMER

fix

parent 0df627d4
......@@ -90,7 +90,7 @@ function cm.pfilter(c,tc)
return c:IsFaceup() and ((tc:IsCode(11451538) and attr&0x30>0) or (tc:IsCode(11451539) and attr&0x3>0) or (tc:IsCode(11451540) and attr&0xc>0))
end
function cm.setfilter(c,tp)
return c:IsSSetable() and Duel.IsExistingMatchingCard(cm.pfilter,tp,LOCATION_MZONE,0,1,nil,c)
return c:IsSSetable() and Duel.IsExistingMatchingCard(cm.pfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,c)
end
function cm.tgfilter(c,attr)
return c:IsAttribute(attr) and c:IsLevel(10) and c:IsRace(RACE_MACHINE) and c:IsAbleToGrave()
......
......@@ -36,8 +36,6 @@ function cm.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
if Duel.IsPlayerAffectedByEffect(tp,59822133) then return false end
local ect=c29724053 and Duel.IsPlayerAffectedByEffect(tp,29724053) and c29724053[tp]
if ect and ect<2 then return false end
local bg=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_HAND,0,c,e,tp)
if #bg==0 then return false end
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)>1
......@@ -46,8 +44,6 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
local c=e:GetHandler()
local tp=c:GetControler()
if Duel.IsPlayerAffectedByEffect(tp,59822133) then return false end
local ect=c29724053 and Duel.IsPlayerAffectedByEffect(tp,29724053) and c29724053[tp]
if ect and ect<2 then return false end
local bg=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_HAND,0,c,e,tp)
if #bg==0 then return false end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
......@@ -55,7 +55,7 @@ function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.chkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
for code=11451901,11451905 do
for code=11451900,11451905 do
if PNFL_DESTROY_CHECK[code] and c:GetFlagEffect(code+0xffffff)==0 then
c:RegisterFlagEffect(code+0xffffff,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(code,6))
end
......
......@@ -209,7 +209,7 @@ function cm.cpop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
if code>=11451901 and code<=11451905 then
if code>=11451900 and code<=11451905 then
e1:SetDescription(aux.Stringid(code,5))
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CLIENT_HINT)
end
......
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