Commit d2340172 authored by POLYMER's avatar POLYMER

fix

parent 196a48bc
No preview for this file type
...@@ -36,7 +36,7 @@ function c33331810.imcon(e) ...@@ -36,7 +36,7 @@ function c33331810.imcon(e)
return Duel.IsExistingMatchingCard(c33331810.ickfil,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c33331810.ickfil,tp,LOCATION_MZONE,0,1,nil)
end end
function c33331810.ctdfil(c) function c33331810.ctdfil(c)
return c:IsAbleToGraveAsCost() and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x566) return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x566)
end end
function c33331810.tdgck(g) function c33331810.tdgck(g)
return g:GetCount()==1 or g:GetCount()==10 return g:GetCount()==1 or g:GetCount()==10
......
--ぎりぎり対峙するG --ぎりぎり対峙するG
function c49811161.initial_effect(c) function c49811161.initial_effect(c)
c:EnableCounterPermit(0x4981) c:EnableCounterPermit(0x490)
--change name --change name
aux.EnableChangeCode(c,15721123,LOCATION_GRAVE) aux.EnableChangeCode(c,15721123,LOCATION_GRAVE)
--spsummon --spsummon
...@@ -38,7 +38,7 @@ function c49811161.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c49811161.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
local cn=Duel.GetMatchingGroupCount(nil,tp,LOCATION_HAND,LOCATION_HAND,nil) local cn=Duel.GetMatchingGroupCount(nil,tp,LOCATION_HAND,LOCATION_HAND,nil)
c:AddCounter(0x4981,cn) c:AddCounter(0x490,cn)
c:CompleteProcedure() c:CompleteProcedure()
c:RegisterFlagEffect(49811161,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD,0,1) c:RegisterFlagEffect(49811161,RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD,0,1)
end end
...@@ -52,8 +52,8 @@ end ...@@ -52,8 +52,8 @@ end
function c49811161.rctop(e,tp,eg,ep,ev,re,r,rp) function c49811161.rctop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
if c:IsCanRemoveCounter(tp,0x4981,1,REASON_EFFECT) then if c:IsCanRemoveCounter(tp,0x490,1,REASON_EFFECT) then
c:RemoveCounter(tp,0x4981,1,REASON_EFFECT) c:RemoveCounter(tp,0x490,1,REASON_EFFECT)
else else
Duel.Destroy(c,REASON_EFFECT) Duel.Destroy(c,REASON_EFFECT)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -85,6 +85,27 @@ function c9910731.conop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,6 +85,27 @@ function c9910731.conop(e,tp,eg,ep,ev,re,r,rp)
e3:SetLabelObject(tc) e3:SetLabelObject(tc)
e3:SetReset(RESET_PHASE+PHASE_END,2) e3:SetReset(RESET_PHASE+PHASE_END,2)
Duel.RegisterEffect(e3,tp) Duel.RegisterEffect(e3,tp)
if tc:IsOnField() and tc:IsFaceup() and tc:IsCanBeDisabledByEffect(e) then
Duel.NegateRelatedChain(tc,RESET_TURN_SET)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_DISABLE)
e4:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
tc:RegisterEffect(e4)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCode(EFFECT_DISABLE_EFFECT)
e5:SetValue(RESET_TURN_SET)
e5:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
tc:RegisterEffect(e5)
if tc:IsType(TYPE_TRAPMONSTER) then
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_SINGLE)
e6:SetCode(EFFECT_DISABLE_TRAPMONSTER)
e6:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
tc:RegisterEffect(e6)
end
end
end end
end end
function c9910731.distg(e,c) function c9910731.distg(e,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