Commit 8a43c03b authored by Tachibana's avatar Tachibana

ybb

parent ca563900
......@@ -85,6 +85,41 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
else
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
Duel.BreakEffect()
local g=Duel.GetMatchingGroup(cm.atkfilter1,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil,tc:GetAttack())
while tc1 do
if tc1:IsLocation(LOCATION_MZONE) and tc1:IsType(TYPE_EFFECT) then
Duel.NegateRelatedChain(tc1,RESET_TURN_SET)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc1:RegisterEffect(e1)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(RESET_TURN_SET)
tc1:RegisterEffect(e2)
else
if tc1:IsType(TYPE_EFFECT) then
Duel.NegateRelatedChain(tc1,RESET_TURN_SET)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+0x17a0000)
tc1:RegisterEffect(e1)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+0x17a0000)
tc1:RegisterEffect(e2)
tc1:RegisterFlagEffect(m,RESET_EVENT+0x17a0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,0))
end
end
tc1=g:GetNext()
end
end
end
end
......
......@@ -99,6 +99,9 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and (c:GetSequence()==4-seq or (c:GetEquipGroup() and c:GetEquipGroup():IsExists(cm.disfilter,1,nil,4-seq))) and not rg:IsContains(re:GetHandler()) and c:IsSummonType(SUMMON_TYPE_ADVANCE) and loc&LOCATION_SZONE~=0
end
end
function cm.disfilter(c,seq)
return c:GetSequence()==seq
end
function cm.disoperation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev)
end
......
......@@ -12,6 +12,7 @@ function cm.initial_effect(c)
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetCode(EFFECT_SPSUMMON_PROC)
e0:SetRange(LOCATION_EXTRA)
e2:SetCountLimit(1,m+EFFECT_COUNT_CODE_DUEL)
e0:SetCondition(function(e,c,og,min,max)
if c==nil then return true end
local tp=c:GetControler()
......@@ -42,7 +43,7 @@ function cm.initial_effect(c)
e3:SetCategory(CATEGORY_NEGATE)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_CHAINING)
e3:SetCountLimit(1,m)
e3:SetCountLimit(1,m+10000)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e3:SetRange(LOCATION_MZONE)
e3:SetCondition(cm.discon)
......
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