Commit e6ec2444 authored by mercury233's avatar mercury233 Committed by DailyShana

errata (#711)

* errata
* fix
parent 5afb586e
...@@ -6,6 +6,7 @@ function c14878871.initial_effect(c) ...@@ -6,6 +6,7 @@ function c14878871.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,14878871)
e1:SetCost(c14878871.spcost) e1:SetCost(c14878871.spcost)
e1:SetTarget(c14878871.sptg) e1:SetTarget(c14878871.sptg)
e1:SetOperation(c14878871.spop) e1:SetOperation(c14878871.spop)
...@@ -27,6 +28,7 @@ end ...@@ -27,6 +28,7 @@ end
function c14878871.spop(e,tp,eg,ep,ev,re,r,rp) function c14878871.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 then return end
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c14878871.filter,tp,LOCATION_DECK,0,nil,e,tp) local g=Duel.GetMatchingGroup(c14878871.filter,tp,LOCATION_DECK,0,nil,e,tp)
if g:GetCount()>=2 then if g:GetCount()>=2 then
local fid=e:GetHandler():GetFieldID() local fid=e:GetHandler():GetFieldID()
...@@ -34,20 +36,31 @@ function c14878871.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,20 +36,31 @@ function c14878871.spop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Select(tp,2,2,nil) local sg=g:Select(tp,2,2,nil)
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
local tc=sg:GetFirst() local tc=sg:GetFirst()
tc:RegisterFlagEffect(14878871,RESET_EVENT+0x1fe0000,0,1,fid) while tc do
tc=sg:GetNext() local e1=Effect.CreateEffect(c)
tc:RegisterFlagEffect(14878871,RESET_EVENT+0x1fe0000,0,1,fid) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e2)
tc:RegisterFlagEffect(14878871,RESET_EVENT+0x1fe0000,0,1,fid)
tc=sg:GetNext()
end
sg:KeepAlive() sg:KeepAlive()
local e1=Effect.CreateEffect(e:GetHandler()) local e3=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e3:SetCode(EVENT_PHASE+PHASE_END)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCountLimit(1) e3:SetCountLimit(1)
e1:SetLabel(fid) e3:SetLabel(fid)
e1:SetLabelObject(sg) e3:SetLabelObject(sg)
e1:SetCondition(c14878871.descon) e3:SetCondition(c14878871.descon)
e1:SetOperation(c14878871.desop) e3:SetOperation(c14878871.desop)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e3,tp)
end end
end end
function c14878871.desfilter(c,fid) function c14878871.desfilter(c,fid)
......
...@@ -10,6 +10,7 @@ function c50321796.initial_effect(c) ...@@ -10,6 +10,7 @@ function c50321796.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,50321796)
e1:SetCost(c50321796.cost) e1:SetCost(c50321796.cost)
e1:SetTarget(c50321796.target) e1:SetTarget(c50321796.target)
e1:SetOperation(c50321796.operation) e1:SetOperation(c50321796.operation)
...@@ -20,7 +21,7 @@ function c50321796.costfilter(c) ...@@ -20,7 +21,7 @@ function c50321796.costfilter(c)
end end
function c50321796.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c50321796.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c50321796.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c50321796.costfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
local rt=Duel.GetTargetCount(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local rt=Duel.GetTargetCount(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local cg=Duel.SelectMatchingCard(tp,c50321796.costfilter,tp,LOCATION_HAND,0,1,rt,nil) local cg=Duel.SelectMatchingCard(tp,c50321796.costfilter,tp,LOCATION_HAND,0,1,rt,nil)
Duel.SendtoGrave(cg,REASON_COST+REASON_DISCARD) Duel.SendtoGrave(cg,REASON_COST+REASON_DISCARD)
...@@ -28,10 +29,10 @@ function c50321796.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,10 +29,10 @@ function c50321796.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c50321796.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c50321796.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsAbleToHand() end if chkc then return chkc:IsOnField() and chkc:IsAbleToHand() end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,1,nil) end
local ct=e:GetLabel() local ct=e:GetLabel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local eg=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,ct,ct,nil) local eg=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,0,LOCATION_ONFIELD,ct,ct,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,eg,ct,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,eg,ct,0,0)
end end
function c50321796.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c50321796.operation(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -27,7 +27,6 @@ function c61740673.initial_effect(c) ...@@ -27,7 +27,6 @@ function c61740673.initial_effect(c)
e4:SetCode(EVENT_PHASE+PHASE_STANDBY) e4:SetCode(EVENT_PHASE+PHASE_STANDBY)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_SZONE)
e4:SetCountLimit(1) e4:SetCountLimit(1)
e4:SetCondition(c61740673.mtcon)
e4:SetOperation(c61740673.mtop) e4:SetOperation(c61740673.mtop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
...@@ -40,11 +39,8 @@ function c61740673.disoperation(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,11 +39,8 @@ function c61740673.disoperation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
end end
end end
function c61740673.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c61740673.mtop(e,tp,eg,ep,ev,re,r,rp) function c61740673.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.CheckLPCost(tp,700) and Duel.SelectYesNo(tp,aux.Stringid(61740673,0)) then if Duel.CheckLPCost(tp,700) then
Duel.PayLPCost(tp,700) Duel.PayLPCost(tp,700)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
--ゴヨウ・ガーディアン --ゴヨウ・ガーディアン
function c7391448.initial_effect(c) function c7391448.initial_effect(c)
--synchro summon --synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_EARTH),aux.NonTuner(nil),1)
c:EnableReviveLimit() c:EnableReviveLimit()
--special summon --special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -2,26 +2,46 @@ ...@@ -2,26 +2,46 @@
function c77565204.initial_effect(c) function c77565204.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c77565204.reg)
e1:SetTarget(c77565204.target) e1:SetTarget(c77565204.target)
e1:SetOperation(c77565204.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--Destroy --Turn 1
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE) e2:SetCategory(CATEGORY_TOGRAVE)
e2:SetCode(EVENT_LEAVE_FIELD) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetOperation(c77565204.desop) e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetCountLimit(1)
e2:SetCondition(c77565204.tgcon)
e2:SetOperation(c77565204.tgop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--Destroy2 --Turn 2
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCode(EVENT_LEAVE_FIELD) e3:SetCode(EVENT_PHASE+PHASE_STANDBY)
e3:SetCondition(c77565204.descon2) e3:SetCountLimit(1)
e3:SetOperation(c77565204.desop2) e3:SetCondition(c77565204.proccon)
e3:SetOperation(c77565204.procop)
e3:SetLabelObject(e2)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--Destroy
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetOperation(c77565204.desop)
c:RegisterEffect(e4)
--Destroy2
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e5:SetRange(LOCATION_SZONE)
e5:SetCode(EVENT_LEAVE_FIELD)
e5:SetCondition(c77565204.descon2)
e5:SetOperation(c77565204.desop2)
c:RegisterEffect(e5)
end end
function c77565204.filter1(c,e) function c77565204.filter1(c,e)
return c:IsCanBeFusionMaterial() and c:IsAbleToGrave() and not c:IsImmuneToEffect(e) return c:IsCanBeFusionMaterial() and c:IsAbleToGrave() and not c:IsImmuneToEffect(e)
...@@ -34,15 +54,41 @@ function c77565204.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -34,15 +54,41 @@ function c77565204.target(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=Duel.GetMatchingGroup(c77565204.filter1,tp,LOCATION_DECK,0,nil,e) local mg=Duel.GetMatchingGroup(c77565204.filter1,tp,LOCATION_DECK,0,nil,e)
return Duel.IsExistingMatchingCard(c77565204.filter2,tp,LOCATION_EXTRA,0,1,nil,mg) return Duel.IsExistingMatchingCard(c77565204.filter2,tp,LOCATION_EXTRA,0,1,nil,mg)
end end
e:GetHandler():SetTurnCounter(0)
end end
function c77565204.activate(e,tp,eg,ep,ev,re,r,rp) function c77565204.reg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local c=e:GetHandler()
c:SetTurnCounter(0)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE_START+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetOperation(c77565204.ctop)
Duel.RegisterEffect(e1,tp)
c:CreateEffectRelation(e1)
end
function c77565204.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=c:GetTurnCounter()
if not c:IsRelateToEffect(e) or ct>=2 then
c:SetTurnCounter(0)
e:Reset()
return
end
if Duel.GetTurnPlayer()~=tp then return end
ct=ct+1
c:SetTurnCounter(ct)
end
function c77565204.tgcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and e:GetHandler():GetTurnCounter()==1
end
function c77565204.tgop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
local mg=Duel.GetMatchingGroup(c77565204.filter1,tp,LOCATION_DECK,0,nil,e) local mg=Duel.GetMatchingGroup(c77565204.filter1,tp,LOCATION_DECK,0,nil,e)
local sg=Duel.GetMatchingGroup(c77565204.filter2,tp,LOCATION_EXTRA,0,nil,mg) local sg=Duel.GetMatchingGroup(c77565204.filter2,tp,LOCATION_EXTRA,0,nil,mg)
if sg:GetCount()>0 then if sg:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local tg=sg:Select(tp,1,1,nil) local tg=sg:Select(tp,1,1,nil)
local tc=tg:GetFirst() local tc=tg:GetFirst()
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
...@@ -55,44 +101,26 @@ function c77565204.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,44 +101,26 @@ function c77565204.activate(e,tp,eg,ep,ev,re,r,rp)
tc=fg:GetNext() tc=fg:GetNext()
end end
Duel.SendtoGrave(mat,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) Duel.SendtoGrave(mat,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
--special summon e:SetLabel(code)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_STANDBY)
e1:SetCountLimit(1)
e1:SetReset(RESET_EVENT+0x1ff0000+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,2)
e1:SetRange(LOCATION_SZONE)
e1:SetCondition(c77565204.proccon)
e1:SetOperation(c77565204.procop)
e1:SetLabel(code)
e1:SetLabelObject(e)
c:RegisterEffect(e1)
end end
end end
function c77565204.proccon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and e:GetHandler():GetTurnCounter()==2
end
function c77565204.procfilter(c,code,e,tp) function c77565204.procfilter(c,code,e,tp)
return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false)
end end
function c77565204.proccon(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer()
end
function c77565204.procop(e,tp,eg,ep,ev,re,r,rp) function c77565204.procop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ct=c:GetTurnCounter() if not c:IsRelateToEffect(e) or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
ct=ct+1 local code=e:GetLabelObject():GetLabel()
c:SetTurnCounter(ct) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
if ct==2 then local g=Duel.SelectMatchingCard(tp,c77565204.procfilter,tp,LOCATION_EXTRA,0,1,1,nil,code,e,tp)
local code=e:GetLabel() local tc=g:GetFirst()
local tc=Duel.GetFirstMatchingCard(c77565204.procfilter,tp,LOCATION_EXTRA,0,nil,code,e,tp) if not tc then return end
if not tc then return end Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then tc:CompleteProcedure()
Duel.SendtoGrave(tc,REASON_EFFECT) c:SetCardTarget(tc)
tc:CompleteProcedure()
else
Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
tc:CompleteProcedure()
c:SetCardTarget(tc)
end
end
end end
function c77565204.desop(e,tp,eg,ep,ev,re,r,rp) function c77565204.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetFirstCardTarget() local tc=e:GetHandler():GetFirstCardTarget()
......
...@@ -16,7 +16,7 @@ function c87910978.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -16,7 +16,7 @@ function c87910978.cost(e,tp,eg,ep,ev,re,r,rp,chk)
else Duel.PayLPCost(tp,800) end else Duel.PayLPCost(tp,800) end
end end
function c87910978.filter(c) function c87910978.filter(c)
return c:IsControlerCanBeChanged() and c:IsFaceup() return c:IsControlerCanBeChanged() and c:IsFaceup() and c:IsSummonableCard()
end end
function c87910978.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c87910978.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c87910978.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c87910978.filter(chkc) end
......
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