Commit c5137550 authored by Huangnan's avatar Huangnan

fix

parent 6273a54e
Pipeline #41929 passed with stage
in 1 minute and 39 seconds
No preview for this file type
expansions/pics/21379152.jpg

54 KB | W: | H:

expansions/pics/21379152.jpg

306 KB | W: | H:

expansions/pics/21379152.jpg
expansions/pics/21379152.jpg
expansions/pics/21379152.jpg
expansions/pics/21379152.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -65,11 +65,11 @@ function c11600625.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,hg)
Duel.ShuffleHand(tp)
local g=Duel.GetMatchingGroup(c11600625.cfilter,tp,0x6,0,1,nil)
local fire=0
local water=0
local dark=0
local tc=g:GetFirst()
while tc do
local fire=0
local water=0
local dark=0
if tc:IsAttribute(ATTRIBUTE_FIRE) and fire<2 then
Duel.Damage(1-tp,500,0x40)
fire=fire+1
......
......@@ -68,7 +68,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,s.thfilter,Duel.GetTurnPlayer(),LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
if #g>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.SendtoHand(g,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
......@@ -54,10 +54,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
local ct=d
if ct>Duel.GetLocationCount(tp,LOCATION_SZONE) then ct=Duel.GetLocationCount(tp,LOCATION_SZONE) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sg=g:FilterSelect(tp,s.setfilter,1,1,nil)
Duel.DisableShuffleCheck()
Duel.MoveToField(sg:GetFirst(),tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.SSet(tp,sg:GetFirst())
g:Sub(sg)
for i=1,g:GetCount() do
local mg=Duel.GetDecktopGroup(tp,1)
......
--无忧梦呓·三角初华
local s,id,o=GetID()
function s.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,id)
e1:SetCost(s.spcost)
e1:SetTarget(s.sptg)
e1:SetOperation(s.spop)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_TO_GRAVE)
e2:SetCountLimit(1,id+o*10000)
e2:SetTarget(s.atktg)
e2:SetOperation(s.atkop)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EVENT_REMOVE)
c:RegisterEffect(e3)
end
function s.costfilter(c)
return c:IsSetCard(0x56ef) and c:IsAbleToGraveAsCost()
end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToChain() then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetTarget(s.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function s.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsDefense(2100)
end
function s.atkfilter(c)
return c:IsFaceup() and c:IsType(TYPE_TUNER)
end
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.atkfilter,tp,LOCATION_MZONE,0,1,nil) end
end
function s.thfilter(c)
return c:IsSetCard(0x56ef) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function s.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.atkfilter,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst()
if tc then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(500)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
if Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.BreakEffect()
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
end
end
\ No newline at end of file
......@@ -24,7 +24,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_HAND+LOCATION_ONFIELD)
e2:SetCountLimit(2,m)
e2:SetCountLimit(1,m)
e2:SetCondition(cm.rmcon)
e2:SetTarget(cm.rmtg)
e2:SetOperation(cm.rmop)
......
......@@ -31,8 +31,8 @@ function s.initial_effect(c)
e4:SetRange(LOCATION_SZONE)
e4:SetCode(EVENT_PHASE+PHASE_END)
e4:SetCountLimit(1,id+o)
e4:SetTarget(c32692693.tdtg)
e4:SetOperation(c32692693.tdop)
e4:SetTarget(s.tdtg)
e4:SetOperation(s.tdop)
c:RegisterEffect(e4)
end
function s.cfilter(c)
......
......@@ -135,8 +135,11 @@ function s.guess(c)
e4:SetCondition(s.guescon3)
c:RegisterEffect(e4)
end
function s.gsfilter(c)
return c:IsSetCard(0xaca4) and c:IsFaceup()
end
function s.guescon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,47330700)~=0 and ep~=tp and Duel.IsExistingMatchingCard(aux.FilterEqualFunction(Card.IsSetCard,0xaca4),tp,LOCATION_MZONE,0,1,e:GetHandler())
return Duel.GetFlagEffect(tp,47330700)~=0 and ep~=tp and Duel.IsExistingMatchingCard(s.gsfilter,tp,LOCATION_MZONE,0,1,e:GetHandler())
end
function s.spfilter(c,tp)
return c:IsPosition(POS_FACEDOWN_DEFENSE) and c:IsSummonPlayer(tp)
......
......@@ -10,6 +10,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCountLimit(1,m)
e1:SetTarget(cm.thtg)
e1:SetOperation(cm.thop)
c:RegisterEffect(e1)
......
......@@ -119,7 +119,7 @@ function cm.SynMixTarget(f1,f2,f3,f4,minc,maxc,gc)
mg2=mg2:Filter(f4,g,c)
local cg=mg2:Filter(cm.SynMixCheckRecursive,g4,tp,g4,mg2,i,minc,maxc,c,g,smat,gc,mgchk)
--if cg:GetCount()==0 then break end
local minct=1
local minct=2
if g4:GetCount()~=0 then minct=0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL)
local tg=cg:Select(tp,minct,99,nil)
......
......@@ -40,7 +40,7 @@ function s.f2(c)
end
function s.f3(c)
return c:GetType()==TYPE_SPELL or c:GetType()==TYPE_TRAP or c:IsFacedown() or c:IsType(TYPE_CONTINUOUS)
return c:IsType(TYPE_SPELL) or c:IsType(TYPE_TRAP) or c:IsFacedown() or c:IsType(TYPE_CONTINUOUS)
end
function s.f4(c)
......@@ -48,7 +48,7 @@ function s.f4(c)
end
function s.f5(c)
return c:GetType()==TYPE_SPELL or c:GetType()==TYPE_TRAP or c:IsType(TYPE_CONTINUOUS)
return c:IsType(TYPE_SPELL) or c:IsType(TYPE_TRAP) or c:IsType(TYPE_CONTINUOUS)
end
function s.f6(c)
......@@ -58,6 +58,7 @@ function s.f6(c)
end
function s.con1(e)
local tp=e:GetHandler():GetControler()
return Duel.IsExistingMatchingCard(s.f1,tp,LOCATION_ONFIELD+LOCATION_REMOVED,0,1,nil)
end
......
......@@ -112,7 +112,7 @@ function s.op2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,s.f4,tp,LOCATION_DECK,0,1,1,nil)
local ag=g:GetFirst()
if g:GetCount()>0 and ag:IsCanBeSpecialSummoned(e,0,tp,false,false) then
if g:GetCount()>0 and ag:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
return Duel.SendtoHand(g,tp,REASON_EFFECT) and Duel.SpecialSummon(ag,0,tp,tp,false,false,POS_FACEUP)
elseif g:GetCount()>0 then
Duel.SendtoHand(g,tp,REASON_EFFECT)
......
......@@ -31,6 +31,7 @@ function c64831003.operation(e,tp,eg,ep,ev,re,r,rp)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL)
e3:SetValue(1)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
sc:RegisterEffect(e3)
local e5=e3:Clone()
e5:SetCode(EFFECT_CANNOT_BE_LINK_MATERIAL)
......
......@@ -52,27 +52,32 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINTMSG_SELECT,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,1,nil)
local tc=sg:GetFirst()
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK)
e1:SetValue(0)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
tc:RegisterEffect(e2)
local e3=Effect.CreateEffect(e:GetHandler())
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_DISABLE)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
tc:RegisterEffect(e3)
local e4=Effect.CreateEffect(e:GetHandler())
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_DISABLE_EFFECT)
e4:SetValue(RESET_TURN_SET)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e4:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e4)
Duel.SpecialSummonComplete()
end
end
--negate
......
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