Commit fa607e2a authored by POLYMER's avatar POLYMER

fix

parent 6aa4dc75
...@@ -35,7 +35,7 @@ function c11570007.initial_effect(c) ...@@ -35,7 +35,7 @@ function c11570007.initial_effect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_TRIGGER) e3:SetCode(EFFECT_CANNOT_TRIGGER)
e3:SetRange(LOCATION_MZONE) --e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c11570007.accon) e3:SetCondition(c11570007.accon)
e3:SetValue(1) e3:SetValue(1)
c:RegisterEffect(e3) c:RegisterEffect(e3)
...@@ -116,7 +116,7 @@ function c11570007.chkfilter(c) ...@@ -116,7 +116,7 @@ function c11570007.chkfilter(c)
return c:IsSetCard(0x3810) and c:IsFaceup() return c:IsSetCard(0x3810) and c:IsFaceup()
end end
function c11570007.accon(e) function c11570007.accon(e)
return not Duel.IsExistingMatchingCard(c11570007.chkfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(c11570007.chkfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) and e:GetHandler():IsLocation(LOCATION_MZONE)
end end
function c11570007.spfilter(c,e,tp) function c11570007.spfilter(c,e,tp)
return c:IsSetCard(0x810) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x810) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -149,5 +149,5 @@ function c11570009.chkfilter(c) ...@@ -149,5 +149,5 @@ function c11570009.chkfilter(c)
return c:IsSetCard(0x3810) and c:IsFaceup() return c:IsSetCard(0x3810) and c:IsFaceup()
end end
function c11570009.descon(e,tp,eg,ep,ev,re,r,rp) function c11570009.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(c11570009.chkfilter,tp,LOCATION_MZONE,0,nil)==0 return Duel.GetMatchingGroupCount(c11570009.chkfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil)==0
end end
...@@ -30,7 +30,7 @@ function c28330319.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,7 +30,7 @@ function c28330319.target(e,tp,eg,ep,ev,re,r,rp,chk)
local dg=Duel.GetMatchingGroup(c28330319.chkfilter,tp,LOCATION_DECK,0,nil) local dg=Duel.GetMatchingGroup(c28330319.chkfilter,tp,LOCATION_DECK,0,nil)
return dg:GetClassCount(Card.GetAttribute)>=3 return dg:GetClassCount(Card.GetAttribute)>=3
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function c28330319.activate(e,tp,eg,ep,ev,re,r,rp) function c28330319.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c28330319.chkfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(c28330319.chkfilter,tp,LOCATION_DECK,0,nil)
......
...@@ -50,7 +50,7 @@ function s.qcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function s.qcon(e,tp,eg,ep,ev,re,r,rp)
end end
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsReleasable() and Duel.GetMZoneCount(tp,c)>0 end if chk==0 then return c:IsReleasable() end
if c:IsLocation(LOCATION_HAND) then e:SetLabel(1) else e:SetLabel(0) end if c:IsLocation(LOCATION_HAND) then e:SetLabel(1) else e:SetLabel(0) end
Duel.Release(c,REASON_COST) Duel.Release(c,REASON_COST)
end end
...@@ -61,7 +61,7 @@ function s.thfilter2(c,tc) ...@@ -61,7 +61,7 @@ function s.thfilter2(c,tc)
return c:IsAllTypes(TYPE_MONSTER+TYPE_RITUAL) and aux.IsCodeListed(tc,c:GetCode()) and c:IsAbleToHand() return c:IsAllTypes(TYPE_MONSTER+TYPE_RITUAL) and aux.IsCodeListed(tc,c:GetCode()) and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function s.thop(e,tp,eg,ep,ev,re,r,rp) function s.thop(e,tp,eg,ep,ev,re,r,rp)
......
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