Commit ef0cf7a7 authored by mercury233's avatar mercury233

fix

parent 95677668
...@@ -5,9 +5,11 @@ function c101011008.initial_effect(c) ...@@ -5,9 +5,11 @@ function c101011008.initial_effect(c)
--can not be attack target --can not be attack target
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
e1:SetCondition(c101011008.atcon) e1:SetCondition(c101011008.atcon)
e1:SetValue(aux.imval1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--search --search
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -44,7 +46,7 @@ end ...@@ -44,7 +46,7 @@ end
function c101011008.atfilter(c) function c101011008.atfilter(c)
return c:IsFaceup() and c:IsSetCard(0x237) return c:IsFaceup() and c:IsSetCard(0x237)
end end
function c101011008.atcon(e,tp,eg,ep,ev,re,r,rp) function c101011008.atcon(e)
return Duel.IsExistingMatchingCard(c101011008.atfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) return Duel.IsExistingMatchingCard(c101011008.atfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler())
end end
function c101011008.srfilter(c) function c101011008.srfilter(c)
......
...@@ -5,9 +5,11 @@ function c101011011.initial_effect(c) ...@@ -5,9 +5,11 @@ function c101011011.initial_effect(c)
--can not be attack target --can not be attack target
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
e1:SetCondition(c101011011.atcon) e1:SetCondition(c101011011.atcon)
e1:SetValue(aux.imval1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--spsummon --spsummon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -37,7 +39,7 @@ end ...@@ -37,7 +39,7 @@ end
function c101011011.atfilter(c) function c101011011.atfilter(c)
return c:IsFaceup() and c:IsSetCard(0x237) return c:IsFaceup() and c:IsSetCard(0x237)
end end
function c101011011.atcon(e,tp,eg,ep,ev,re,r,rp) function c101011011.atcon(e)
return Duel.IsExistingMatchingCard(c101011011.atfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) return Duel.IsExistingMatchingCard(c101011011.atfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler())
end end
function c101011011.spfilter(c,e,tp) function c101011011.spfilter(c,e,tp)
......
...@@ -42,7 +42,7 @@ function c101011057.cfilter(c) ...@@ -42,7 +42,7 @@ function c101011057.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x238) return c:IsFaceup() and c:IsSetCard(0x238)
end end
function c101011057.thfilter(c) function c101011057.thfilter(c)
return c:IsType(TYPE_RITUAL) and c:IsAbleToHand() return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c101011057.thcon(e,tp,eg,ep,ev,re,r,rp) function c101011057.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c101011057.cfilter,1,nil) return eg:IsExists(c101011057.cfilter,1,nil)
......
...@@ -33,7 +33,7 @@ function c101011059.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,7 @@ function c101011059.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c101011059.activate(e,tp,eg,ep,ev,re,r,rp) function c101011059.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c101011059.tgfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(c101011059.tgfilter,tp,LOCATION_DECK,0,nil)
local ct=Duel.GetMatchingGroup(aux.FilterEqualFunction(Card.GetSummonLocation,LOCATION_EXTRA),tp,0,LOCATION_MZONE,nil) local ct=Duel.GetMatchingGroupCount(aux.FilterEqualFunction(Card.GetSummonLocation,LOCATION_EXTRA),tp,0,LOCATION_MZONE,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:SelectSubGroup(tp,aux.dncheck,false,1,ct+1) local sg=g:SelectSubGroup(tp,aux.dncheck,false,1,ct+1)
if sg and sg:GetCount()>0 then if sg and sg:GetCount()>0 then
......
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