Commit de72f6f7 authored by Nemo Ma's avatar Nemo Ma

fix

parent 279fac13
...@@ -15,13 +15,13 @@ function c12057601.initial_effect(c) ...@@ -15,13 +15,13 @@ function c12057601.initial_effect(c)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--immune --immune
local e1=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e6:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e6:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCode(EFFECT_IMMUNE_EFFECT) e6:SetRange(LOCATION_MZONE)
e1:SetRange(LOCATION_MZONE) e6:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetValue(c12057601.efilter) e6:SetValue(c12057601.efilter)
c:RegisterEffect(e1) c:RegisterEffect(e6)
--Equip --Equip
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12057601,0)) e2:SetDescription(aux.Stringid(12057601,0))
...@@ -47,6 +47,9 @@ function c12057601.initial_effect(c) ...@@ -47,6 +47,9 @@ function c12057601.initial_effect(c)
e3:SetOperation(c12057601.tdop) e3:SetOperation(c12057601.tdop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c12057601.efilter(e,te)
return te:IsActiveType(TYPE_SPELL)
end
function c12057601.eqcon(e,tp,eg,ep,ev,re,r,rp) function c12057601.eqcon(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER) return re:IsActiveType(TYPE_MONSTER)
end end
......
...@@ -6,6 +6,7 @@ function c29065704.initial_effect(c) ...@@ -6,6 +6,7 @@ function c29065704.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,29065705) e1:SetCountLimit(1,29065705)
e1:SetTarget(c29065704.sptg) e1:SetTarget(c29065704.sptg)
e1:SetOperation(c29065704.spop) e1:SetOperation(c29065704.spop)
......
--加帕里公园 - 神圣之山 --加帕里公园 - 神圣之山
function c33700103.initial_effect(c) function c33700103.initial_effect(c)
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE) e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN) e0:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e0) c:RegisterEffect(e0)
...@@ -42,7 +42,7 @@ function c33700103.filter1(c,e,tp,sg) ...@@ -42,7 +42,7 @@ function c33700103.filter1(c,e,tp,sg)
and Duel.IsExistingMatchingCard(c33700103.filter2,tp,LOCATION_HAND+LOCATION_GRAVE,0,sg,nil,e,tp,c:GetCode()) and Duel.IsExistingMatchingCard(c33700103.filter2,tp,LOCATION_HAND+LOCATION_GRAVE,0,sg,nil,e,tp,c:GetCode())
end end
function c33700103.filter2(c,e,tp,g) function c33700103.filter2(c,e,tp,g)
return c:GetCode()~=g and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetCode()~=g and c:IsSetCard(0x442) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c33700103.filter3(c,e,tp,pg) function c33700103.filter3(c,e,tp,pg)
return not pg:IsExists(c33700103.filter4,1,nil,c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return not pg:IsExists(c33700103.filter4,1,nil,c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -85,7 +85,7 @@ end ...@@ -85,7 +85,7 @@ end
end end
function c33700103.filter5(c,e,tp,sg) function c33700103.filter5(c,e,tp,sg)
return c:IsAbleToDeck() and c:IsSetCard(0x442) and c:IsFaceup() return c:IsAbleToDeck() and c:IsSetCard(0x442) and c:IsFaceup()
and Duel.IsExistingMatchingCard(c33700103.filter2,tp,LOCATION_HAND+LOCATION_GRAVE,0,sg,nil,e,tp,c:GetCode()) and Duel.IsExistingMatchingCard(c33700103.filter2,tp,LOCATION_DECK,0,sg,nil,e,tp,c:GetCode())
end end
function c33700103.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c33700103.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
local sg=Duel.GetMatchingGroup(c33700103.filter0,tp,LOCATION_MZONE,0,nil) local sg=Duel.GetMatchingGroup(c33700103.filter0,tp,LOCATION_MZONE,0,nil)
......
...@@ -63,7 +63,7 @@ function c7409805.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function c7409805.drop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_UPDATE_DEFENSE) e2:SetCode(EFFECT_UPDATE_DEFENSE)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else else
local g=Duel.GetMatchingGroup(c7409805.Grimy_Goons_filter,p,LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,p,LOCATION_HAND,0,nil)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK)
......
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