Commit fc304784 authored by POLYMER's avatar POLYMER

fix

parent 7482736c
...@@ -109,7 +109,7 @@ function c11513083.swtg2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -109,7 +109,7 @@ function c11513083.swtg2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c11513083.swop2(e,tp,eg,ep,ev,re,r,rp) function c11513083.swop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.SelectMatchingCard(tp,c11513083.setfil,tp,aux.NecroValleyFilter(LOCATION_DECK+LOCATION_GRAVE),0,1,1,nil,e,tp):GetFirst() local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c11513083.setfil),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst()
if tc then if tc then
if tc:IsType(TYPE_MONSTER) then if tc:IsType(TYPE_MONSTER) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
......
...@@ -56,4 +56,3 @@ function c11561016.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,4 +56,3 @@ function c11561016.regop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
RACE_PLANT
\ No newline at end of file
--花之装 梣 --花之装 梣
function c11561030.initial_effect(c) function c11561030.initial_effect(c)
--link summon --link summon
aux.AddLinkProcedure(c,nil,2,2,c11561030.lcheck) aux.AddLinkProcedure(c,nil,2,2)
c:EnableReviveLimit() c:EnableReviveLimit()
--immuse --immuse
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -23,15 +23,16 @@ function c75081061.cfilter(c) ...@@ -23,15 +23,16 @@ function c75081061.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x75c) return c:IsFaceup() and c:IsSetCard(0x75c)
end end
function c75081061.drepcon(e,tp,eg,ep,ev,re,r,rp) function c75081061.drepcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c75081061.cfilter,1,nil) return eg:IsExists(c75081061.cfilter,1,nil) and e:GetHandler():GetFlagEffect(75081061)==0
end end
function c75081061.dreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c75081061.dreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() end if chk==0 then return e:GetHandler():IsAbleToRemove() end
c:RegisterFlagEffect(75081061,RESET_CHAIN,0,1)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,e:GetHandler(),1,0,0)
end end
function c75081061.drepop(e,tp,eg,ep,ev,re,r,rp) function c75081061.drepop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToRemove() end if not c:IsRelateToEffect(e) then return end
if Duel.Remove(c,0,REASON_EFFECT+REASON_TEMPORARY)~=0 and c:GetOriginalCode()==75081061 then if Duel.Remove(c,0,REASON_EFFECT+REASON_TEMPORARY)~=0 and c:GetOriginalCode()==75081061 then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
...@@ -58,6 +59,7 @@ end ...@@ -58,6 +59,7 @@ end
-- --
function c75081061.drepop1(e,tp,eg,ep,ev,re,r,rp) function c75081061.drepop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
Duel.Remove(c,POS_FACEUP,REASON_EFFECT) Duel.Remove(c,POS_FACEUP,REASON_EFFECT)
local fid=c:GetFieldID() local fid=c:GetFieldID()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
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