Commit 2014bce9 authored by Huangnan's avatar Huangnan

fix

parent 1bb3ef52
Pipeline #30121 passed with stages
in 33 minutes and 12 seconds
No preview for this file type
expansions/pics/50223270.jpg

93.4 KB | W: | H:

expansions/pics/50223270.jpg

150 KB | W: | H:

expansions/pics/50223270.jpg
expansions/pics/50223270.jpg
expansions/pics/50223270.jpg
expansions/pics/50223270.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50224185.jpg

72.5 KB | W: | H:

expansions/pics/50224185.jpg

108 KB | W: | H:

expansions/pics/50224185.jpg
expansions/pics/50224185.jpg
expansions/pics/50224185.jpg
expansions/pics/50224185.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -45,10 +45,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
function s.discon(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsChainDisablable(ev) then return false end
local te,p=Duel.GetChainInfo(ev-1,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
return te and te:GetHandler():IsSetCard(0x4a76) and te:IsActiveType(TYPE_MONSTER) and p==tp and rp==1-tp
local te,p,loc=Duel.GetChainInfo(ev-1,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER,CHAININFO_TRIGGERING_LOCATION)
return te and te:GetHandler():IsSetCard(0x4a76) and te:IsActiveType(TYPE_MONSTER) and p==tp and rp==1-tp and loc&LOCATION_ONFIELD>0
end
function s.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local te,p,loc=Duel.GetChainInfo(ev-1,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER,CHAININFO_TRIGGERING_LOCATION)
......
......@@ -293,7 +293,7 @@ function Chikichikibanban.chikiav(c,propery,cost,con,tg,op,category,cardcode,mes
e1:SetCategory(category)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,cardcode)
e1:SetCountLimit(1,cardcode+EFFECT_COUNT_CODE_OATH)
if propery then
e1:SetProperty(propery)
end
......
......@@ -50,7 +50,7 @@ end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_GRAVE,0,nil):Filter(Card.IsCanBeEffectTarget,nil,e)
if chkc then return false end
if chk==0 then return g:GetClassCount(Card.GetCode)>=3 end
if chk==0 then return g:GetClassCount(Card.GetCode)>=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local tg=g:SelectSubGroup(tp,aux.dncheck,false,1,3)
Duel.SetTargetCard(tg)
......
......@@ -8,13 +8,14 @@ function c29969185.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DIRECT_ATTACK)
c:RegisterEffect(e1)
--spsummon
--full break
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(29969185,1))
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_BATTLE_DAMAGE)
e2:SetCountLimit(1,299969185)
e2:SetCondition(c29969185.descondition)
e2:SetCost(c29969185.descost)
e2:SetTarget(c29969185.destg)
e2:SetOperation(c29969185.desop)
......@@ -30,6 +31,40 @@ function c29969185.initial_effect(c)
e3:SetTarget(c29969185.sptg)
e3:SetOperation(c29969185.spop)
c:RegisterEffect(e3)
--voice
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetOperation(c29969185.sumsuc)
c:RegisterEffect(e0)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetCondition(c29969185.leavecon1)
e4:SetOperation(c29969185.leaveop1)
c:RegisterEffect(e4)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e5:SetCategory(CATEGORY_DESTROY)
e5:SetCode(EVENT_BATTLE_DESTROYING)
e5:SetCondition(aux.bdocon)
e5:SetOperation(c29969185.winop)
c:RegisterEffect(e5)
end
function c29969185.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(24,0,aux.Stringid(29969185,3))
end
function c29969185.leavecon1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE)
and c:IsPreviousControler(tp) and c:GetReasonPlayer()==1-tp
end
function c29969185.leaveop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(24,0,aux.Stringid(29969185,4))
end
function c29969185.winop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(24,0,aux.Stringid(29969185,6))
end
function c29969185.mfilter0(c)
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_FIRE)
......@@ -44,6 +79,9 @@ function c29969185.ovfilter(c)
and c:IsRace(RACE_DRAGON) and c:IsAttribute(ATTRIBUTE_DARK)
and c:IsLevel(4)
end
function c29969185.descondition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.GetAttackTarget()==nil
end
function c29969185.xyzop(e,tp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,29969185)==0 end
Duel.RegisterFlagEffect(tp,29969185,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
......@@ -63,6 +101,7 @@ end
function c29969185.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD)
if g:GetCount()>0 then
Duel.Hint(24,0,aux.Stringid(29969185,5))
Duel.Destroy(g,REASON_RULE)
end
end
......
......@@ -161,7 +161,7 @@ function s.indct(e,re,r,rp)
end
--
function s.incon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.acfilter,tp,LOCATION_SZONE,0,1,nil)
return Duel.IsExistingMatchingCard(s.acfilter,e:GetHandlerPlayer(),LOCATION_SZONE,0,1,nil)
end
......
......@@ -39,7 +39,7 @@ function s.indct(e,re,r,rp)
end
--
function s.incon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.acfilter,tp,LOCATION_SZONE,0,1,nil)
return Duel.IsExistingMatchingCard(s.acfilter,e:GetHandlerPlayer(),LOCATION_SZONE,0,1,nil)
end
--
function s.thfilter(c)
......
......@@ -39,7 +39,7 @@ function s.indct(e,re,r,rp)
end
--
function s.incon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.acfilter,tp,LOCATION_SZONE,0,1,nil)
return Duel.IsExistingMatchingCard(s.acfilter,e:GetHandlerPlayer(),LOCATION_SZONE,0,1,nil)
end
--
function s.thfilter(c)
......
......@@ -109,7 +109,7 @@ function s.indct(e,re,r,rp)
end
--
function s.incon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.acfilter,tp,LOCATION_SZONE,0,1,nil)
return Duel.IsExistingMatchingCard(s.acfilter,e:GetHandlerPlayer(),LOCATION_SZONE,0,1,nil)
end
......
......@@ -56,7 +56,7 @@ function s.indct(e,re,r,rp)
end
--
function s.incon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.acfilter,tp,LOCATION_SZONE,0,1,nil)
return Duel.IsExistingMatchingCard(s.acfilter,e:GetHandlerPlayer(),LOCATION_SZONE,0,1,nil)
end
--
function s.filter(c,e,tp)
......
......@@ -59,7 +59,7 @@ function s.acfilter(c)
return c:IsCode(33401530) and c:IsFaceup()
end
function s.incon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.acfilter,tp,LOCATION_SZONE,0,1,nil)
return Duel.IsExistingMatchingCard(s.acfilter,e:GetHandlerPlayer(),LOCATION_SZONE,0,1,nil)
end
--
function s.negcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -35,7 +35,7 @@ end
function c65830000.filter(c)
return c:IsLinkSetCard(0xa33) and c:IsAbleToHand()
return c:IsSetCard(0xa33) and c:IsAbleToHand()
end
function c65830000.target1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65830000.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -96,7 +96,7 @@ end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,0,LOCATION_MZONE,1,1,nil)
if #g>0 and Duel.SendtoGrave(g,nil,REASON_EFFECT)~=0 then
if #g>0 and Duel.SendtoGrave(g,REASON_EFFECT)~=0 then
local sg=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc=sg:GetFirst()
if tc then
......
......@@ -48,7 +48,7 @@ function cm.gccon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function cm.gctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.NegateEffectMonsterFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,nil,1,0,0)
end
function cm.gcop(e,tp,eg,ep,ev,re,r,rp)
......
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