Commit ec496c5e authored by POLYMER's avatar POLYMER

fix

parent 19dbb766
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
--21.04.10 --21.04.10
local cm,m=GetID() local cm,m=GetID()
function cm.initial_effect(c) function cm.initial_effect(c)
c:SetUniqueOnField(1,0,m) --c:SetUniqueOnField(1,0,m)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_ATKCHANGE) e1:SetCategory(CATEGORY_TODECK+CATEGORY_ATKCHANGE)
......
...@@ -18,8 +18,8 @@ function c28351818.initial_effect(c) ...@@ -18,8 +18,8 @@ function c28351818.initial_effect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_TOGRAVE) e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_TOGRAVE)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetTarget(c28318027.thtg) e2:SetTarget(c28351818.thtg)
e2:SetOperation(c28318027.thop) e2:SetOperation(c28351818.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c28351818.matfilter(c,syncard) function c28351818.matfilter(c,syncard)
......
...@@ -44,8 +44,8 @@ function s.initial_effect(c) ...@@ -44,8 +44,8 @@ function s.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
s.pendulum_level=7 s.pendulum_level=7
function s.mfilter(c) function s.mfilter(c,xyzc)
return c:IsFaceup() and c:IsRace(RACE_DRAGON) and c:IsXyzLevel(7) return c:IsFaceup() and c:IsRace(RACE_DRAGON) and c:IsXyzLevel(xyzc,7)
end end
function s.ovfilter(c) function s.ovfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_DARK) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_DARK) and c:IsType(TYPE_XYZ)
......
...@@ -46,10 +46,10 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,10 +46,10 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.desfilter(c) function cm.desfilter(c)
return c:IsSetCard(0x3620) return c:IsSetCard(0x3620) and (c:IsLocation(LOCATION_HAND) or (c:IsLocation(LOCATION_ONFIELD) and c:IsFaceup()))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and cm.desfilter(chkc,tp) end if chkc then return chkc:IsControler(tp) and cm.desfilter(chkc,tp) end
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingTarget(cm.desfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,nil,tp) end and Duel.IsExistingTarget(cm.desfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
...@@ -34,10 +34,10 @@ function cm.initial_effect(c) ...@@ -34,10 +34,10 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.desfilter(c) function cm.desfilter(c)
return c:IsSetCard(0x3620) return c:IsSetCard(0x3620) and (c:IsLocation(LOCATION_HAND) or (c:IsLocation(LOCATION_ONFIELD) and c:IsFaceup()))
end end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and cm.desfilter(chkc,tp) end if chkc then return chkc:IsControler(tp) and cm.desfilter(chkc,tp) end
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingTarget(cm.desfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,nil,tp) end and Duel.IsExistingTarget(cm.desfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
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