Commit fa607e2a authored by POLYMER's avatar POLYMER

fix

parent 6aa4dc75
......@@ -35,7 +35,7 @@ function c11570007.initial_effect(c)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_TRIGGER)
e3:SetRange(LOCATION_MZONE)
--e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c11570007.accon)
e3:SetValue(1)
c:RegisterEffect(e3)
......@@ -116,7 +116,7 @@ function c11570007.chkfilter(c)
return c:IsSetCard(0x3810) and c:IsFaceup()
end
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
function c11570007.spfilter(c,e,tp)
return c:IsSetCard(0x810) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -149,5 +149,5 @@ function c11570009.chkfilter(c)
return c:IsSetCard(0x3810) and c:IsFaceup()
end
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
......@@ -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)
return dg:GetClassCount(Card.GetAttribute)>=3
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c28330319.activate(e,tp,eg,ep,ev,re,r,rp)
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)
end
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
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
Duel.Release(c,REASON_COST)
end
......@@ -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()
end
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)
end
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