Commit 1422fd70 authored by Huangnan's avatar Huangnan

fix

parent 2081930b
Pipeline #36176 failed with stages
in 3 minutes and 6 seconds
No preview for this file type
......@@ -22,16 +22,13 @@ function s.initial_effect(c)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,id+1)
e2:SetCondition(s.descon)
e2:SetTarget(s.destg)
e2:SetOperation(s.desop)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e3)
end
function s.lcheck(g,lc)
return g:IsExists(Card.IsLinkSetCard,1,nil,0x9a7c)
......
......@@ -45,7 +45,7 @@ function cm.sumfilter(c,e,tp)
local minc,maxc=c:GetTributeRequirement()
res=Duel.IsPlayerCanSummon(tp,SUMMON_TYPE_ADVANCE,c) and Duel.CheckTribute(c,minc,maxc) and not c:IsAbleToExtraAsCost() and c:GetOriginalType()&TYPE_SPSUMMON==0 and c:GetOriginalType()&TYPE_RITUAL==0
end
return c:GetOriginalType()&TYPE_MONSTER~=0 and (res or c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)) and c:IsSetCard(0xccb) and Duel.IsExistingMatchingCard(cm.atkfilter1,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil,c:GetAttack())
return c:GetOriginalType()&TYPE_MONSTER~=0 and (res or c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)) and c:IsSetCard(0xccb) and Duel.IsExistingMatchingCard(cm.atkfilter1,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil,c:GetTextAttack())
end
function cm.atkfilter1(c,atk)
return c:GetOriginalType()&TYPE_MONSTER~=0 and c:IsAttackBelow(atk) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE))
......@@ -85,7 +85,7 @@ 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())
local g=Duel.GetMatchingGroup(cm.atkfilter1,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil,tc:GetTextAttack())
local tc1=g:GetFirst()
while tc1 do
if tc1:IsLocation(LOCATION_MZONE) and tc1:IsType(TYPE_EFFECT) then
......@@ -126,7 +126,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.doitdis(e,tp)
local atk=e:GetHandler():GetAttack()
local atk=e:GetHandler():GetBaseAttack()
local g1=Duel.GetMatchingGroup(cm.atkfilter1,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,atk)
if g1:GetCount()>0 then
local tc1=g1:GetFirst()
......
......@@ -21,7 +21,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.teop)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,0))
e3:SetDescription(aux.Stringid(m,3))
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_SPSUMMON_PROC)
e3:SetRange(LOCATION_EXTRA)
......@@ -60,8 +60,8 @@ function cm.teop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then
local b1=not g:GetFirst():IsForbidden()
local op=aux.SelectFromOptions(tp,
{b1,aux.Stringid(m,3)},
{true,aux.Stringid(m,4)})
{b1,aux.Stringid(m,1)},
{true,aux.Stringid(m,2)})
if op==1 then
Duel.MoveToField(g:GetFirst(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end
......
--弹弹软糖骑士饱藏
local cm,m,o=GetID()
function cm.initial_effect(c)
aux.AddCodeList(c,18700781)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......@@ -73,7 +74,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst()
if tc then
tc:SetEntityCode(m+2)
tc:SetEntityCode(m+2,true)
tc:ReplaceEffect(m+2,0,0)
Duel.Hint(10,1,m+2)
Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+18700924,nil,0,e:GetHandlerPlayer(),e:GetHandlerPlayer(),0)
......
--脆脆薯片骑士饱藏
local cm,m,o=GetID()
function cm.initial_effect(c)
aux.AddCodeList(c,18700781)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EFFECT_DESTROY_REPLACE)
......@@ -69,7 +70,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst()
if tc then
tc:SetEntityCode(m+2)
tc:SetEntityCode(m+2,true)
tc:ReplaceEffect(m+2,0,0)
Duel.Hint(10,1,m+2)
Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+18700924,nil,0,e:GetHandlerPlayer(),e:GetHandlerPlayer(),0)
......
--蓬松棉花糖骑士饱藏
local cm,m,o=GetID()
function cm.initial_effect(c)
aux.AddCodeList(c,18700781)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_TODECK)
......@@ -71,7 +72,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst()
if tc then
tc:SetEntityCode(m+2)
tc:SetEntityCode(m+2,true)
tc:ReplaceEffect(m+2,0,0)
Duel.Hint(10,1,m+2)
Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+18700924,nil,0,e:GetHandlerPlayer(),e:GetHandlerPlayer(),0)
......
--蛋糕王骑士饱藏
local cm,m,o=GetID()
function cm.initial_effect(c)
aux.AddCodeList(c,18700781)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......@@ -98,7 +99,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc then
Duel.Hint(24,0,aux.Stringid(m,8))
tc:SetEntityCode(m+2)
tc:SetEntityCode(m+2,true)
tc:ReplaceEffect(m+2,0,0)
Duel.Hint(24,0,aux.Stringid(m,9))
Duel.Hint(10,1,m+2)
......
--Gavv-旋转棒棒糖
local cm, m, o = GetID()
function cm.initial_effect(c)
aux.AddCodeList(c,18700781)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetType(EFFECT_TYPE_QUICK_O)
......@@ -70,7 +71,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst()
if tc then
tc:SetEntityCode(m+2)
tc:SetEntityCode(m+2,true)
tc:ReplaceEffect(m+2,0,0)
Duel.Hint(10,1,m+2)
Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+18700924,nil,0,e:GetHandlerPlayer(),e:GetHandlerPlayer(),0)
......
--巧克咚骑士饱藏
local cm,m,o=GetID()
function cm.initial_effect(c)
aux.AddCodeList(c,18700935)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......@@ -71,7 +72,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst()
if tc then
tc:SetEntityCode(m+2)
tc:SetEntityCode(m+2,true)
tc:ReplaceEffect(m+2,0,0)
Duel.Hint(10,1,m+2)
Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+18700924,nil,0,e:GetHandlerPlayer(),e:GetHandlerPlayer(),0)
......
......@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND+LOCATION_ONFIELD)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetHintTiming(TIMING_DAMAGE_STEP,TIMING_DAMAGE_STEP+TIMINGS_CHECK_MONSTER)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
......@@ -73,7 +74,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst()
if tc then
tc:SetEntityCode(m+2)
tc:SetEntityCode(m+2,true)
tc:ReplaceEffect(m+2,0,0)
Duel.Hint(10,1,m+2)
Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+18700924,nil,0,e:GetHandlerPlayer(),e:GetHandlerPlayer(),0)
......
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