Commit f1a22d3a authored by Momobako's avatar Momobako

Push by Appveyor

parent e9e70b7c
...@@ -107,7 +107,7 @@ function c13254057.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,7 +107,7 @@ function c13254057.desop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)~=2 then return end if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)~=2 then return end
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local tg=Duel.SelectMatchingCard(tp,c13254051.desfilter,tp,0,LOCATION_ONFIELD,1,1,nil) local tg=Duel.SelectMatchingCard(tp,c13254057.desfilter,tp,0,LOCATION_ONFIELD,1,1,nil)
if tg:GetCount()>0 then if tg:GetCount()>0 then
Duel.HintSelection(tg) Duel.HintSelection(tg)
Duel.Destroy(tg,REASON_EFFECT) Duel.Destroy(tg,REASON_EFFECT)
......
...@@ -41,6 +41,14 @@ function c13257201.initial_effect(c) ...@@ -41,6 +41,14 @@ function c13257201.initial_effect(c)
e4:SetCost(c13257201.atkcost) e4:SetCost(c13257201.atkcost)
e4:SetOperation(c13257201.atkop) e4:SetOperation(c13257201.atkop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetOperation(c13257201.bgmop)
c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
end end
function c13257201.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257201.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -52,7 +60,7 @@ function c13257201.desrepop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +60,7 @@ function c13257201.desrepop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT) e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT)
end end
function c13257201.ctop(e,tp,eg,ep,ev,re,r,rp) function c13257201.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1f,3) e:GetHandler():AddCounter(0x1f,2)
end end
function c13257201.atkcon(e,tp,eg,ep,ev,re,r,rp) function c13257201.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
...@@ -72,3 +80,6 @@ function c13257201.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,3 +80,6 @@ function c13257201.atkop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
function c13257201.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257201,4))
end
...@@ -30,6 +30,14 @@ function c13257202.initial_effect(c) ...@@ -30,6 +30,14 @@ function c13257202.initial_effect(c)
e4:SetTarget(c13257202.postg) e4:SetTarget(c13257202.postg)
e4:SetOperation(c13257202.posop) e4:SetOperation(c13257202.posop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetOperation(c13257202.bgmop)
c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
end end
function c13257202.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257202.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -41,10 +49,10 @@ function c13257202.desrepop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,10 +49,10 @@ function c13257202.desrepop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT) e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT)
end end
function c13257202.ctop(e,tp,eg,ep,ev,re,r,rp) function c13257202.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1f,3) e:GetHandler():AddCounter(0x1f,2)
end end
function c13257202.thfilter(c) function c13257202.thfilter(c)
return c:IsSetCard(0x15) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x353) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c13257202.postg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257202.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAttackPos,tp,0,LOCATION_MZONE,1,nil) and Duel.IsExistingMatchingCard(c13257202.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAttackPos,tp,0,LOCATION_MZONE,1,nil) and Duel.IsExistingMatchingCard(c13257202.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -55,7 +63,7 @@ end ...@@ -55,7 +63,7 @@ end
function c13257202.posop(e,tp,eg,ep,ev,re,r,rp) function c13257202.posop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAttackPos,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsAttackPos,tp,0,LOCATION_MZONE,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.ChangePosition(g,POS_FACEUP_DEFENSE) if Duel.ChangePosition(g,POS_FACEUP_DEFENSE)==0 then return end
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=Duel.SelectMatchingCard(tp,c13257202.thfilter,tp,LOCATION_DECK,0,1,1,nil) local sg=Duel.SelectMatchingCard(tp,c13257202.thfilter,tp,LOCATION_DECK,0,1,1,nil)
...@@ -65,3 +73,6 @@ function c13257202.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,3 +73,6 @@ function c13257202.posop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function c13257202.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257202,4))
end
...@@ -42,6 +42,14 @@ function c13257203.initial_effect(c) ...@@ -42,6 +42,14 @@ function c13257203.initial_effect(c)
e5:SetCost(c13257203.descost) e5:SetCost(c13257203.descost)
e5:SetOperation(c13257203.swop) e5:SetOperation(c13257203.swop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetOperation(c13257203.bgmop)
c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
end end
function c13257203.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257203.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -53,7 +61,7 @@ function c13257203.desrepop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +61,7 @@ function c13257203.desrepop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT) e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT)
end end
function c13257203.ctop(e,tp,eg,ep,ev,re,r,rp) function c13257203.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1f,3) e:GetHandler():AddCounter(0x1f,2)
end end
function c13257203.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c13257203.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x1f,1,REASON_COST) end if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x1f,1,REASON_COST) end
...@@ -92,3 +100,6 @@ function c13257203.swop(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,3 +100,6 @@ function c13257203.swop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e7) c:RegisterEffect(e7)
end end
end end
function c13257203.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257203,4))
end
...@@ -29,6 +29,14 @@ function c13257204.initial_effect(c) ...@@ -29,6 +29,14 @@ function c13257204.initial_effect(c)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetOperation(c13257204.bgmop)
c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
end end
function c13257204.otfilter(c,tp) function c13257204.otfilter(c,tp)
...@@ -75,5 +83,8 @@ function c13257204.desrepop(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,5 +83,8 @@ function c13257204.desrepop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c13257204.ctop(e,tp,eg,ep,ev,re,r,rp) function c13257204.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1f,2) e:GetHandler():AddCounter(0x1f,1)
end
function c13257204.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257204,4))
end end
--巨大战舰 巨核Mk-2(D) --巨大战舰 巨核Mk-2(D)
function c13257205.initial_effect(c) function c13257205.initial_effect(c)
c:EnableCounterPermit(0x1f) c:EnableCounterPermit(0x1f)
--summon with no tribute
local e11=Effect.CreateEffect(c) local e11=Effect.CreateEffect(c)
e11:SetDescription(aux.Stringid(13257205,1)) e11:SetDescription(aux.Stringid(13257205,1))
e11:SetProperty(EFFECT_FLAG_UNCOPYABLE) e11:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e11:SetType(EFFECT_TYPE_SINGLE) e11:SetType(EFFECT_TYPE_SINGLE)
e11:SetCode(EFFECT_SUMMON_PROC) e11:SetCode(EFFECT_SUMMON_PROC)
e11:SetCondition(c13257205.ntcon) e11:SetCondition(c13257205.otcon)
e11:SetOperation(c13257205.otop)
e11:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e11) c:RegisterEffect(e11)
--Destroy replace --Destroy replace
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -30,20 +31,57 @@ function c13257205.initial_effect(c) ...@@ -30,20 +31,57 @@ function c13257205.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--atkup --atkup
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(13257205,2)) e4:SetDescription(aux.Stringid(13257205,3))
e4:SetCategory(CATEGORY_ATKCHANGE) e4:SetCategory(CATEGORY_ATKCHANGE)
e4:SetType(EFFECT_TYPE_IGNITION) e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1) e4:SetCountLimit(1)
e4:SetCost(c13257205.atkcost) e4:SetCost(c13257205.atkcost)
e4:SetTarget(c13257205.atktg)
e4:SetOperation(c13257205.atkop) e4:SetOperation(c13257205.atkop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetOperation(c13257205.bgmop)
c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
end end
function c13257205.ntcon(e,c,minc) function c13257205.otfilter(c)
return c:IsSetCard(0x353) and c:IsType(TYPE_MONSTER) and c:IsReleasable()
end
function c13257205.otfilter1(c)
return c:IsSetCard(0x353) and c:IsType(TYPE_MONSTER) and c:IsFaceup()
end
function c13257205.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
return minc==0 and c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 local tp=c:GetControler()
and Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0 local mg=Duel.GetMatchingGroup(c13257205.otfilter,tp,LOCATION_HAND,0,c)
local mg1=Duel.GetMatchingGroup(c13257205.otfilter1,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
return c:GetLevel()>6 and minc<=2
and (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and mg:GetCount()>=1
or Duel.CheckTribute(c,1,1,mg1))
or c:GetLevel()>4 and c:GetLevel()<=6 and minc<=1
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and mg:GetCount()>=1
end
function c13257205.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c13257205.otfilter,tp,LOCATION_HAND,0,c)
local mg1=Duel.GetMatchingGroup(c13257205.otfilter1,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local sg=Group.CreateGroup()
if c:GetLevel()>6 then
if mg:GetCount()>0 and mg1:GetCount()==0 or (mg:GetCount()>0 and mg1:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(13257205,2))) then
sg=mg:Select(tp,1,1,nil)
else
sg=Duel.SelectTribute(tp,c,1,1,mg1)
end
else
sg=mg:Select(tp,1,1,nil)
end
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end end
function c13257205.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257205.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT+REASON_BATTLE) if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT+REASON_BATTLE)
...@@ -54,12 +92,16 @@ function c13257205.desrepop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,12 +92,16 @@ function c13257205.desrepop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT) e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT)
end end
function c13257205.ctop(e,tp,eg,ep,ev,re,r,rp) function c13257205.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1f,3) e:GetHandler():AddCounter(0x1f,2)
end end
function c13257205.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c13257205.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x1f,1,REASON_COST) end if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x1f,1,REASON_COST) end
e:GetHandler():RemoveCounter(tp,0x1f,1,REASON_COST) e:GetHandler():RemoveCounter(tp,0x1f,1,REASON_COST)
end end
function c13257205.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK)==0
and e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK_MONSTER)==0 end
end
function c13257205.atkop(e,tp,eg,ep,ev,re,r,rp) function c13257205.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) and c:IsFaceup() then
...@@ -74,5 +116,15 @@ function c13257205.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,5 +116,15 @@ function c13257205.atkop(e,tp,eg,ep,ev,re,r,rp)
e6:SetCode(EFFECT_NO_BATTLE_DAMAGE) e6:SetCode(EFFECT_NO_BATTLE_DAMAGE)
e6:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e6:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
c:RegisterEffect(e6) c:RegisterEffect(e6)
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
e7:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e7:SetCode(EFFECT_EXTRA_ATTACK_MONSTER)
e7:SetValue(1)
e7:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
c:RegisterEffect(e7)
end end
end end
function c13257205.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257205,4))
end
--巨大战舰 巨核Mk-3(D) --巨大战舰 巨核Mk-3(D)
function c13257206.initial_effect(c) function c13257206.initial_effect(c)
c:EnableCounterPermit(0x1f) c:EnableCounterPermit(0x1f)
--special summon
local e11=Effect.CreateEffect(c) local e11=Effect.CreateEffect(c)
e11:SetType(EFFECT_TYPE_FIELD) e11:SetDescription(aux.Stringid(13257206,1))
e11:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM) e11:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e11:SetCode(EFFECT_SPSUMMON_PROC) e11:SetType(EFFECT_TYPE_SINGLE)
e11:SetTargetRange(POS_FACEUP_DEFENSE,0) e11:SetCode(EFFECT_SUMMON_PROC)
e11:SetRange(LOCATION_HAND) e11:SetCondition(c13257206.otcon)
e11:SetCondition(c13257206.sprcon) e11:SetOperation(c13257206.otop)
e11:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e11) c:RegisterEffect(e11)
--Destroy replace --Destroy replace
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -44,23 +44,45 @@ function c13257206.initial_effect(c) ...@@ -44,23 +44,45 @@ function c13257206.initial_effect(c)
e5:SetCondition(c13257206.damcon) e5:SetCondition(c13257206.damcon)
e5:SetOperation(c13257206.damop) e5:SetOperation(c13257206.damop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
--to deck --damage
local e6=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
e6:SetCategory(CATEGORY_TODECK) e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e6:SetType(EFFECT_TYPE_IGNITION) e6:SetRange(LOCATION_MZONE)
e6:SetRange(LOCATION_GRAVE) e6:SetCode(EVENT_SUMMON_SUCCESS)
e6:SetCost(c13257206.tdcost) e6:SetCondition(c13257206.damcon1)
e6:SetTarget(c13257206.tdtg) e6:SetOperation(c13257206.damop)
e6:SetOperation(c13257206.tdop)
c:RegisterEffect(e6) c:RegisterEffect(e6)
local e7=e6:Clone()
e6:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e7)
local e8=e7:Clone()
e8:SetCode(EVENT_SPSUMMON_SUCCESS)
e8:SetCondition(c13257206.damcon2)
c:RegisterEffect(e8)
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetOperation(c13257206.bgmop)
c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
end end
function c13257206.sprcon(e,c) function c13257206.otfilter(c)
return c:IsSetCard(0x353) and c:IsType(TYPE_MONSTER) and (c:IsControler(tp) or c:IsFaceup())
end
function c13257206.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 local mg=Duel.GetMatchingGroup(c13257206.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 return c:GetLevel()>6 and minc<=1 and Duel.CheckTribute(c,1,1,mg)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
function c13257206.otop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c13257206.otfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local sg=Duel.SelectTribute(tp,c,1,1,mg)
c:SetMaterial(sg)
Duel.Release(sg, REASON_SUMMON+REASON_MATERIAL)
end end
function c13257206.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257206.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT+REASON_BATTLE) if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT+REASON_BATTLE)
...@@ -71,7 +93,7 @@ function c13257206.desrepop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +93,7 @@ function c13257206.desrepop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT) e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT)
end end
function c13257206.ctop(e,tp,eg,ep,ev,re,r,rp) function c13257206.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1f,3) e:GetHandler():AddCounter(0x1f,2)
end end
function c13257206.regop(e,tp,eg,ep,ev,re,r,rp) function c13257206.regop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(13257206,RESET_EVENT+0x1fc0000+RESET_CHAIN,0,1) e:GetHandler():RegisterFlagEffect(13257206,RESET_EVENT+0x1fc0000+RESET_CHAIN,0,1)
...@@ -82,21 +104,17 @@ function c13257206.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,21 +104,17 @@ function c13257206.damcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c13257206.damop(e,tp,eg,ep,ev,re,r,rp) function c13257206.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,13257206) Duel.Hint(HINT_CARD,0,13257206)
Duel.Damage(1-tp,500,REASON_EFFECT) Duel.Damage(1-tp,200,REASON_EFFECT)
end end
function c13257206.tdcost(e,tp,eg,ep,ev,re,r,rp,chk) function c13257206.cfilter(c,tp)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end return c:GetSummonPlayer()==tp
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c13257206.tdfilter(c) function c13257206.damcon1(e,tp,eg,ep,ev,re,r,rp)
return c:IsSetCard(0x15) and c:IsAbleToDeck() return eg:IsExists(c13257206.cfilter,1,nil,1-tp)
end end
function c13257206.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257206.damcon2(e,tp,eg,ep,ev,re,r,rp)
if chk==0 then return Duel.IsExistingMatchingCard(c13257206.tdfilter,tp,LOCATION_GRAVE,0,1,nil) end return rp~=tp
local g=Duel.GetMatchingGroup(c13257206.tdfilter,tp,LOCATION_GRAVE,0,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
end end
function c13257206.tdop(e,tp,eg,ep,ev,re,r,rp) function c13257206.bgmop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c13257206.tdfilter,tp,LOCATION_GRAVE,0,nil) Duel.Hint(11,0,aux.Stringid(13257206,4))
Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end end
...@@ -35,7 +35,7 @@ function c13257207.spcon(e,c) ...@@ -35,7 +35,7 @@ function c13257207.spcon(e,c)
and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end end
function c13257207.spfilter(c,e,tp) function c13257207.spfilter(c,e,tp)
return c:IsCode(100000085) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(13257207) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c13257207.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257207.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
...@@ -51,7 +51,7 @@ function c13257207.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c13257207.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c13257207.thfilter(c) function c13257207.thfilter(c)
return c:IsSetCard(0x15) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:IsCode(100000085) return c:IsSetCard(0x353) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:IsCode(13257207)
end end
function c13257207.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257207.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c13257207.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c13257207.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -5,6 +5,7 @@ function c13257208.initial_effect(c) ...@@ -5,6 +5,7 @@ function c13257208.initial_effect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c13257208.target)
e1:SetOperation(c13257208.activate) e1:SetOperation(c13257208.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--atk/def up --atk/def up
...@@ -13,41 +14,22 @@ function c13257208.initial_effect(c) ...@@ -13,41 +14,22 @@ function c13257208.initial_effect(c)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x15)) e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x353))
e2:SetValue(500) e2:SetValue(500)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_UPDATE_DEFENSE) e3:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--indes
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e4:SetRange(LOCATION_FZONE)
e4:SetTargetRange(LOCATION_MZONE,0)
e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x15))
e4:SetValue(c13257208.indval)
c:RegisterEffect(e4)
--cannot be target
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e5:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e5:SetRange(LOCATION_FZONE)
e5:SetTargetRange(LOCATION_MZONE,0)
e5:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x15))
e5:SetValue(aux.tgoval)
c:RegisterEffect(e5)
--spsummon --spsummon
local e6=Effect.CreateEffect(c) --local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(13257208,1)) --e6:SetDescription(aux.Stringid(13257208,1))
e6:SetCategory(CATEGORY_SPECIAL_SUMMON) --e6:SetCategory(CATEGORY_SPECIAL_SUMMON)
e6:SetType(EFFECT_TYPE_IGNITION) --e6:SetType(EFFECT_TYPE_IGNITION)
e6:SetRange(LOCATION_FZONE) --e6:SetRange(LOCATION_FZONE)
e6:SetCountLimit(1) --e6:SetCountLimit(1)
e6:SetTarget(c13257208.sptg) --e6:SetTarget(c13257208.sptg)
e6:SetOperation(c13257208.spop) --e6:SetOperation(c13257208.spop)
c:RegisterEffect(e6) --c:RegisterEffect(e6)
local e7=Effect.CreateEffect(c) local e7=Effect.CreateEffect(c)
e7:SetDescription(aux.Stringid(13257208,2)) e7:SetDescription(aux.Stringid(13257208,2))
e7:SetCategory(CATEGORY_DRAW) e7:SetCategory(CATEGORY_DRAW)
...@@ -62,7 +44,11 @@ function c13257208.initial_effect(c) ...@@ -62,7 +44,11 @@ function c13257208.initial_effect(c)
end end
function c13257208.thfilter(c) function c13257208.thfilter(c)
return c:IsCode(511000019) and c:IsAbleToHand() return (c:IsCode(13257209) or c:IsCode(13257211)) and c:IsAbleToHand()
end
function c13257208.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(11,0,aux.Stringid(13257208,4))
end end
function c13257208.activate(e,tp,eg,ep,ev,re,r,rp) function c13257208.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
...@@ -78,7 +64,7 @@ function c13257208.indval(e,re,rp) ...@@ -78,7 +64,7 @@ function c13257208.indval(e,re,rp)
return rp~=e:GetHandlerPlayer() return rp~=e:GetHandlerPlayer()
end end
function c13257208.spfilter(c,e,tp) function c13257208.spfilter(c,e,tp)
return c:IsSetCard(0x15) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x353) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c13257208.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257208.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
...@@ -94,7 +80,7 @@ function c13257208.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -94,7 +80,7 @@ function c13257208.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c13257208.cfilter(c,tp) function c13257208.cfilter(c,tp)
return c:GetPreviousControler()==tp and (c:IsReason(REASON_BATTLE) or (c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT))) return c:GetPreviousControler()==tp and c:IsSetCard(0x353) and (c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT))
and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousLocation(LOCATION_MZONE)
end end
function c13257208.drcon(e,tp,eg,ep,ev,re,r,rp) function c13257208.drcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -6,7 +6,7 @@ function c13257209.initial_effect(c) ...@@ -6,7 +6,7 @@ function c13257209.initial_effect(c)
e1:SetCategory(CATEGORY_COUNTER) e1:SetCategory(CATEGORY_COUNTER)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetTarget(c13257209.target) e1:SetTarget(c13257209.target)
e1:SetOperation(c13257209.operation) e1:SetOperation(c13257209.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -24,7 +24,7 @@ function c13257209.initial_effect(c) ...@@ -24,7 +24,7 @@ function c13257209.initial_effect(c)
end end
function c13257209.filter(c) function c13257209.filter(c)
return c:IsSetCard(0x15) and c:IsType(TYPE_MONSTER) and c:IsFaceup() and c:IsCanAddCounter(0x1f,3) return c:IsSetCard(0x353) and c:IsType(TYPE_MONSTER) and c:IsFaceup() and c:IsCanAddCounter(0x1f,3)
end end
function c13257209.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c13257209.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsOnField() and c13257209.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsOnField() and c13257209.filter(chkc) end
...@@ -48,7 +48,7 @@ end ...@@ -48,7 +48,7 @@ end
function c13257209.operation(e,tp,eg,ep,ev,re,r,rp) function c13257209.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then if tc:IsFaceup() and tc:IsRelateToEffect(e) then
tc:AddCounter(0x1f,3) tc:AddCounter(0x1f,1)
end end
end end
function c13257209.thcon(e,tp,eg,ep,ev,re,r,rp) function c13257209.thcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -41,13 +41,14 @@ function c13257210.initial_effect(c) ...@@ -41,13 +41,14 @@ function c13257210.initial_effect(c)
e4:SetTarget(c13257210.sptg) e4:SetTarget(c13257210.sptg)
e4:SetOperation(c13257210.spop) e4:SetOperation(c13257210.spop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--add code
local e12=Effect.CreateEffect(c) local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE) e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EFFECT_ADD_SETCODE) e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e12:SetOperation(c13257210.bgmop)
e12:SetValue(0x15)
c:RegisterEffect(e12) c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
end end
function c13257210.ntcon(e,c,minc) function c13257210.ntcon(e,c,minc)
...@@ -78,13 +79,13 @@ function c13257210.desrepop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,13 +79,13 @@ function c13257210.desrepop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT) e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT)
end end
function c13257210.ctop(e,tp,eg,ep,ev,re,r,rp) function c13257210.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1f,3) e:GetHandler():AddCounter(0x1f,2)
end end
function c13257210.spcon(e,tp,eg,ep,ev,re,r,rp) function c13257210.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:GetFirst()==e:GetHandler() return eg:GetFirst()==e:GetHandler()
end end
function c13257210.spfilter(c,e,tp) function c13257210.spfilter(c,e,tp)
return c:IsLevelBelow(6) and c:IsSetCard(0x15) and not c:IsCode(12079734) return c:IsLevelBelow(6) and c:IsSetCard(0x353) and not c:IsCode(13257210)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c13257210.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c13257210.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...@@ -101,3 +102,6 @@ function c13257210.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -101,3 +102,6 @@ function c13257210.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function c13257210.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257210,4))
end
--BOSS来袭(D) --BOSS来袭(D)
function c13257211.initial_effect(c) function c13257211.initial_effect(c)
c:SetUniqueOnField(1,0,13257211)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
...@@ -23,7 +24,7 @@ function c13257211.initial_effect(c) ...@@ -23,7 +24,7 @@ function c13257211.initial_effect(c)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_SZONE)
e4:SetCode(EVENT_TO_GRAVE) e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetOperation(c13257211.checkop) e4:SetOperation(c13257211.checkop)
c:RegisterEffect(e4,0) c:RegisterEffect(e4,0)
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
...@@ -66,7 +67,7 @@ function c13257211.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +67,7 @@ function c13257211.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c13257211.chkfilter(c,tp) function c13257211.chkfilter(c,tp)
return c:IsSetCard(0x15) and c:IsReason(REASON_DESTROY) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) return c:IsSetCard(0x353) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE)
end end
function c13257211.checkop(e,tp,eg,ep,ev,re,r,rp) function c13257211.checkop(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(c13257211.chkfilter,1,nil,tp) then if eg:IsExists(c13257211.chkfilter,1,nil,tp) then
...@@ -77,7 +78,7 @@ function c13257211.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +78,7 @@ function c13257211.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(13257211)~=0 return e:GetHandler():GetFlagEffect(13257211)~=0
end end
function c13257211.filter(c,e,tp) function c13257211.filter(c,e,tp)
return c:IsSetCard(0x15) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x353) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c13257211.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257211.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -30,6 +30,14 @@ function c13257212.initial_effect(c) ...@@ -30,6 +30,14 @@ function c13257212.initial_effect(c)
e3:SetTarget(c13257212.thtg) e3:SetTarget(c13257212.thtg)
e3:SetOperation(c13257212.thop) e3:SetOperation(c13257212.thop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetOperation(c13257212.bgmop)
c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
end end
function c13257212.spcon(e,c) function c13257212.spcon(e,c)
...@@ -76,7 +84,7 @@ function c13257212.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -76,7 +84,7 @@ function c13257212.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c13257212.thfilter(c) function c13257212.thfilter(c)
return c:IsSetCard(0x15) and c:IsAbleToHand() return c:IsSetCard(0x353) and c:IsAbleToHand()
end end
function c13257212.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257212.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c13257212.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c13257212.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -90,3 +98,6 @@ function c13257212.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,3 +98,6 @@ function c13257212.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c13257212.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257212,4))
end
...@@ -11,8 +11,7 @@ function c13257213.initial_effect(c) ...@@ -11,8 +11,7 @@ function c13257213.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--Activate --Activate
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
...@@ -24,7 +23,7 @@ function c13257213.initial_effect(c) ...@@ -24,7 +23,7 @@ function c13257213.initial_effect(c)
end end
function c13257213.filter(c,e,tp) function c13257213.filter(c,e,tp)
return c:IsSetCard(0x15) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x353) and c:IsLevelBelow(6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c13257213.target(e,tp,eg,ep,ev,re,r,rp,chk) function c13257213.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
...@@ -57,36 +56,28 @@ function c13257213.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -57,36 +56,28 @@ function c13257213.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c13257213.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c13257213.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) and Duel.IsExistingMatchingCard(c13257213.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c13257213.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end end
function c13257213.activate2(e,tp,eg,ep,ev,re,r,rp) function c13257213.activate2(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if tc:IsRelateToEffect(e) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local att=tc:GetAttribute() local g=Duel.SelectMatchingCard(tp,c13257213.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if Duel.SendtoGrave(tc,REASON_EFFECT)~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
local g=Duel.SelectMatchingCard(tp,c13257213.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_SUMMON)
Duel.RegisterEffect(e2,tp)
local e3=e1:Clone()
e3:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
Duel.RegisterEffect(e3,tp)
end end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_SUMMON)
Duel.RegisterEffect(e2,tp)
local e3=e1:Clone()
e3:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
Duel.RegisterEffect(e3,tp)
end end
...@@ -10,14 +10,6 @@ function c13257214.initial_effect(c) ...@@ -10,14 +10,6 @@ function c13257214.initial_effect(c)
e1:SetCondition(c13257214.spcon) e1:SetCondition(c13257214.spcon)
e1:SetOperation(c13257214.spop) e1:SetOperation(c13257214.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c13257214.retcon)
e2:SetOperation(c13257214.retop)
c:RegisterEffect(e2)
--spsummon cost --spsummon cost
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
...@@ -26,8 +18,29 @@ function c13257214.initial_effect(c) ...@@ -26,8 +18,29 @@ function c13257214.initial_effect(c)
e3:SetCost(c13257214.spcost) e3:SetCost(c13257214.spcost)
e3:SetOperation(c13257214.spcop) e3:SetOperation(c13257214.spcop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--indes
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e4:SetRange(LOCATION_MZONE)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetValue(c13257214.indct)
c:RegisterEffect(e4)
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetOperation(c13257214.bgmop)
c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
Duel.AddCustomActivityCounter(13257214,ACTIVITY_NORMALSUMMON,c13257214.counterfilter)
Duel.AddCustomActivityCounter(13257214,ACTIVITY_SPSUMMON,c13257214.counterfilter)
end end
function c13257214.counterfilter(c)
return c:IsSetCard(0x353)
end
function c13257214.spfilter(c,ft) function c13257214.spfilter(c,ft)
return c:IsAbleToGraveAsCost() and (ft>0 or c:GetSequence()<5) return c:IsAbleToGraveAsCost() and (ft>0 or c:GetSequence()<5)
end end
...@@ -44,7 +57,7 @@ function c13257214.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -44,7 +57,7 @@ function c13257214.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c13257214.spcost(e,c,tp) function c13257214.spcost(e,c,tp)
return Duel.GetActivityCount(tp,ACTIVITY_NORMALSUMMON)==0 return Duel.GetCustomActivityCount(13257214,tp,ACTIVITY_SPSUMMON)==0 and Duel.GetCustomActivityCount(13257214,tp,ACTIVITY_NORMALSUMMON)==0
end end
function c13257214.spcop(e,tp,eg,ep,ev,re,r,rp) function c13257214.spcop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -64,18 +77,13 @@ function c13257214.spcop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,18 +77,13 @@ function c13257214.spcop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e3,tp) Duel.RegisterEffect(e3,tp)
end end
function c13257214.splimit(e,c) function c13257214.splimit(e,c)
return not c:IsSetCard(0x15) return not c:IsSetCard(0x353)
end end
function c13257214.retcon(e,tp,eg,ep,ev,re,r,rp) function c13257214.bgmop(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetControler()~=e:GetHandler():GetOwner() Duel.Hint(11,0,aux.Stringid(13257214,4))
end end
function c13257214.retop(e,tp,eg,ep,ev,re,r,rp) function c13257214.indct(e,re,r,rp)
local c=e:GetOwner() if bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 then
c:ResetEffect(EFFECT_SET_CONTROL,RESET_CODE) return 1
local e1=Effect.CreateEffect(c) else return 0 end
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_CONTROL)
e1:SetValue(c:GetOwner())
e1:SetReset(RESET_EVENT+0xec0000)
c:RegisterEffect(e1)
end end
...@@ -10,6 +10,13 @@ function c13257215.initial_effect(c) ...@@ -10,6 +10,13 @@ function c13257215.initial_effect(c)
e11:SetOperation(c13257215.otop) e11:SetOperation(c13257215.otop)
e11:SetValue(SUMMON_TYPE_ADVANCE) e11:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e11) c:RegisterEffect(e11)
--cannot special summon
local e12=Effect.CreateEffect(c)
e12:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e12:SetType(EFFECT_TYPE_SINGLE)
e12:SetCode(EFFECT_SPSUMMON_CONDITION)
e12:SetValue(aux.FALSE)
c:RegisterEffect(e12)
--Destroy replace --Destroy replace
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
...@@ -31,7 +38,7 @@ function c13257215.initial_effect(c) ...@@ -31,7 +38,7 @@ function c13257215.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--remove --remove
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(13257203,1)) e4:SetDescription(aux.Stringid(13257215,2))
e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_FREE_CHAIN) e4:SetCode(EVENT_FREE_CHAIN)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
...@@ -51,6 +58,14 @@ function c13257215.initial_effect(c) ...@@ -51,6 +58,14 @@ function c13257215.initial_effect(c)
e5:SetTarget(c13257215.sptg) e5:SetTarget(c13257215.sptg)
e5:SetOperation(c13257215.spop) e5:SetOperation(c13257215.spop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
local e13=Effect.CreateEffect(c)
e13:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e13:SetCode(EVENT_SUMMON_SUCCESS)
e13:SetOperation(c13257215.bgmop)
c:RegisterEffect(e13)
local e14=e13:Clone()
e14:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e14)
end end
function c13257215.otfilter(c,tp) function c13257215.otfilter(c,tp)
...@@ -146,14 +161,14 @@ function c13257215.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -146,14 +161,14 @@ function c13257215.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c13257215.spcon(e,tp,eg,ep,ev,re,r,rp) function c13257215.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=s:GetHandler() local c=e:GetHandler()
return c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp return c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp
end end
function c13257215.spfilter(c,e,tp) function c13257215.spfilter(c,e,tp)
return c:IsLevelBelow(6) and c:IsSetCard(0x15) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(6) and c:IsSetCard(0x353) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c13257215.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257215.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c13257215.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c13257215.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c13257215.spop(e,tp,eg,ep,ev,re,r,rp) function c13257215.spop(e,tp,eg,ep,ev,re,r,rp)
...@@ -164,3 +179,6 @@ function c13257215.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -164,3 +179,6 @@ function c13257215.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function c13257215.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257215,4))
end
...@@ -36,6 +36,14 @@ function c13257216.initial_effect(c) ...@@ -36,6 +36,14 @@ function c13257216.initial_effect(c)
e4:SetTarget(c13257216.thtg) e4:SetTarget(c13257216.thtg)
e4:SetOperation(c13257216.thop) e4:SetOperation(c13257216.thop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetOperation(c13257216.bgmop)
c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
end end
function c13257216.cfilter(c,tp) function c13257216.cfilter(c,tp)
...@@ -79,7 +87,7 @@ function c13257216.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -79,7 +87,7 @@ function c13257216.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c13257216.thfilter(c) function c13257216.thfilter(c)
return c:IsSetCard(0x15) and c:IsAbleToHand() return c:IsSetCard(0x353) and c:IsAbleToHand()
end end
function c13257216.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257216.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c13257216.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c13257216.thfilter,tp,LOCATION_DECK,0,1,nil) end
...@@ -93,3 +101,6 @@ function c13257216.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,3 +101,6 @@ function c13257216.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c13257216.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257216,4))
end
...@@ -15,14 +15,14 @@ function c13257217.initial_effect(c) ...@@ -15,14 +15,14 @@ function c13257217.initial_effect(c)
e2:SetCategory(CATEGORY_COUNTER) e2:SetCategory(CATEGORY_COUNTER)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SUMMON_SUCCESS) e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetOperation(c13257215.ctop) e2:SetOperation(c13257217.ctop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=e2:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--remove --remove
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(13257203,1)) e4:SetDescription(aux.Stringid(13257217,1))
e4:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_POSITION) e4:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_POSITION)
e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_FREE_CHAIN) e4:SetCode(EVENT_FREE_CHAIN)
...@@ -31,36 +31,31 @@ function c13257217.initial_effect(c) ...@@ -31,36 +31,31 @@ function c13257217.initial_effect(c)
e4:SetCountLimit(1) e4:SetCountLimit(1)
e4:SetHintTiming(0,0x1e0) e4:SetHintTiming(0,0x1e0)
e4:SetCondition(c13257217.poscon) e4:SetCondition(c13257217.poscon)
e4:SetCost(c13257217.poscost)
e4:SetTarget(c13257217.postg) e4:SetTarget(c13257217.postg)
e4:SetOperation(c13257217.posop) e4:SetOperation(c13257217.posop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c13257202.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257217.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT+REASON_BATTLE) if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT+REASON_BATTLE)
and e:GetHandler():GetCounter(0x1f)>0 end and e:GetHandler():GetCounter(0x1f)>0 end
return true return true
end end
function c13257202.desrepop(e,tp,eg,ep,ev,re,r,rp) function c13257217.desrepop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT) e:GetHandler():RemoveCounter(ep,0x1f,1,REASON_EFFECT)
end end
function c13257202.ctop(e,tp,eg,ep,ev,re,r,rp) function c13257217.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1f,3) e:GetHandler():AddCounter(0x1f,2)
end end
function c13257202.poscon(e,tp,eg,ep,ev,re,r,rp) function c13257217.poscon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end end
function c13257202.poscost(e,tp,eg,ep,ev,re,r,rp,chk) function c13257217.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x1f,1,REASON_COST) end
e:GetHandler():RemoveCounter(tp,0x1f,1,REASON_COST)
end
function c13257202.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,g,g:GetCount(),0,0)
end end
function c13257202.posop(e,tp,eg,ep,ev,re,r,rp) function c13257217.posop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.ChangePosition(sg,POS_FACEUP_DEFENSE,0,POS_FACEUP_ATTACK,0) Duel.ChangePosition(sg,POS_FACEUP_DEFENSE,0,POS_FACEUP_ATTACK,0)
...@@ -69,7 +64,7 @@ function c13257202.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +64,7 @@ function c13257202.posop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetValue(-700) e1:SetValue(-700)
sc:RegisterEffect(e1) sc:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
...@@ -79,3 +74,6 @@ function c13257202.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,3 +74,6 @@ function c13257202.posop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function c13257217.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257217,4))
end
...@@ -12,10 +12,18 @@ function c13257218.initial_effect(c) ...@@ -12,10 +12,18 @@ function c13257218.initial_effect(c)
e11:SetCode(EFFECT_SPSUMMON_PROC) e11:SetCode(EFFECT_SPSUMMON_PROC)
e11:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM) e11:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM)
e11:SetRange(LOCATION_HAND) e11:SetRange(LOCATION_HAND)
e11:SetTargetRange(POS_FACEUP,1) e11:SetTargetRange(POS_FACEUP_ATTACK,1)
e11:SetCondition(c13257218.spcon) e11:SetCondition(c13257218.spcon)
e11:SetOperation(c13257218.spop) e11:SetOperation(c13257218.spop)
c:RegisterEffect(e11) c:RegisterEffect(e11)
--spsummon cost
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE)
e12:SetCode(EFFECT_SPSUMMON_COST)
e12:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e12:SetCost(c13257218.spcost)
e12:SetOperation(c13257218.spcop)
c:RegisterEffect(e12)
--Destroy replace --Destroy replace
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
...@@ -60,8 +68,21 @@ function c13257218.initial_effect(c) ...@@ -60,8 +68,21 @@ function c13257218.initial_effect(c)
e5:SetTarget(c13257218.distg) e5:SetTarget(c13257218.distg)
e5:SetOperation(c13257218.disop) e5:SetOperation(c13257218.disop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
local e13=Effect.CreateEffect(c)
e13:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e13:SetCode(EVENT_SUMMON_SUCCESS)
e13:SetOperation(c13257218.bgmop)
c:RegisterEffect(e13)
local e14=e13:Clone()
e14:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e14)
Duel.AddCustomActivityCounter(13257218,ACTIVITY_SPSUMMON,c13257218.counterfilter)
Duel.AddCustomActivityCounter(13257218,ACTIVITY_NORMALSUMMON,c13257218.counterfilter)
end end
function c13257218.counterfilter(c)
return not c:IsSetCard(0x353)
end
function c13257218.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257218.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT+REASON_BATTLE) if chk==0 then return e:GetHandler():IsReason(REASON_EFFECT+REASON_BATTLE)
and e:GetHandler():GetCounter(0x1f)>0 end and e:GetHandler():GetCounter(0x1f)>0 end
...@@ -144,7 +165,7 @@ function c13257218.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -144,7 +165,7 @@ function c13257218.discon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsChainNegatable(ev) return Duel.IsChainNegatable(ev)
end end
function c13257218.costfilter(c) function c13257218.costfilter(c)
return c:IsSetCard(0x15) and c:IsDiscardable() return c:IsSetCard(0x353) and c:IsDiscardable()
end end
function c13257218.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c13257218.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c13257218.costfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c13257218.costfilter,tp,LOCATION_HAND,0,1,nil) end
...@@ -163,3 +184,28 @@ function c13257218.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -163,3 +184,28 @@ function c13257218.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
function c13257218.spcost(e,c,tp)
return Duel.GetActivityCount(tp,ACTIVITY_NORMALSUMMON)==0 and Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0
end
function c13257218.spcop(e,tp,eg,ep,ev,re,r,rp)
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(c13257218.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_SUMMON)
Duel.RegisterEffect(e2,tp)
local e3=e1:Clone()
e3:SetCode(EFFECT_CANNOT_MSET)
Duel.RegisterEffect(e3,tp)
end
function c13257218.splimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0x356)
end
function c13257218.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257218,4))
end
...@@ -31,15 +31,27 @@ function c13257219.initial_effect(c) ...@@ -31,15 +31,27 @@ function c13257219.initial_effect(c)
e3:SetTarget(c13257219.sptg) e3:SetTarget(c13257219.sptg)
e3:SetOperation(c13257219.spop) e3:SetOperation(c13257219.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e12:SetCode(EVENT_SUMMON_SUCCESS)
e12:SetOperation(c13257219.bgmop)
c:RegisterEffect(e12)
local e13=e12:Clone()
e13:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e13)
Duel.AddCustomActivityCounter(13257219,ACTIVITY_SPSUMMON,c13257219.counterfilter)
end end
function c13257219.counterfilter(c)
return c:GetSummonLocation()~=LOCATION_EXTRA
end
function c13257219.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c13257219.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToGraveAsCost() and c:IsDiscardable() end if chk==0 then return c:IsAbleToGraveAsCost() and c:IsDiscardable() end
Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD) Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD)
end end
function c13257219.filter(c) function c13257219.filter(c)
return c:IsCode(975299) and c:IsAbleToHand() return c:IsCode(13257208) and c:IsAbleToHand()
end end
function c13257219.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c13257219.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(c13257219.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c13257219.filter,tp,LOCATION_DECK,0,1,nil) end
...@@ -53,7 +65,7 @@ function c13257219.operation(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,7 +65,7 @@ function c13257219.operation(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c13257219.thcon(e,tp,eg,ep,ev,re,r,rp) function c13257219.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsEnvironment(975299) return Duel.IsEnvironment(13257208)
end end
function c13257219.cfilter(c) function c13257219.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToGraveAsCost()
...@@ -66,7 +78,7 @@ function c13257219.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -66,7 +78,7 @@ function c13257219.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c13257219.thfilter(c) function c13257219.thfilter(c)
return c:IsSetCard(0x15) and c:IsAbleToHand() return c:IsSetCard(0x353) and c:IsAbleToHand()
end end
function c13257219.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c13257219.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_GRAVE and chkc:GetControler()==tp and c13257219.thfilter(chkc) end if chkc then return chkc:GetLocation()==LOCATION_GRAVE and chkc:GetControler()==tp and c13257219.thfilter(chkc) end
...@@ -83,7 +95,7 @@ function c13257219.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,7 +95,7 @@ function c13257219.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c13257219.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c13257219.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) and Duel.GetCustomActivityCount(13257219,tp,ACTIVITY_SPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
...@@ -92,6 +104,9 @@ function c13257219.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -92,6 +104,9 @@ function c13257219.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTarget(c13257219.sumlimit) e1:SetTarget(c13257219.sumlimit)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local cg=Duel.SelectMatchingCard(tp,Card.IsDiscardable,tp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoGrave(cg,REASON_COST+REASON_DISCARD)
end end
function c13257219.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c13257219.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsLocation(LOCATION_EXTRA) return c:IsLocation(LOCATION_EXTRA)
...@@ -122,3 +137,6 @@ function c13257219.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -122,3 +137,6 @@ function c13257219.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function c13257219.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(11,0,aux.Stringid(13257219,4))
end
...@@ -109,16 +109,15 @@ end ...@@ -109,16 +109,15 @@ end
function c13257230.caop(e,tp,eg,ep,ev,re,r,rp) function c13257230.caop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToBattle() or not c:IsRelateToEffect(e) then return end if not c:IsRelateToBattle() or not c:IsRelateToEffect(e) then return end
Duel.ChainAttack()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_DIRECT_ATTACK) e1:SetCode(EFFECT_EXTRA_ATTACK)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(1)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_BATTLE+PHASE_DAMAGE_CAL) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_BATTLE)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c13257230.descon(e,tp,eg,ep,ev,re,r,rp) function c13257230.descon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and eg:GetFirst()==e:GetHandler() return ep~=tp
end end
function c13257230.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c13257230.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
......
...@@ -28,6 +28,7 @@ function c22261002.IsKuMaKawa(c) ...@@ -28,6 +28,7 @@ function c22261002.IsKuMaKawa(c)
return m and m.named_with_KuMaKawa return m and m.named_with_KuMaKawa
end end
function c22261002.condition(e,tp,eg,ep,ev,re,r,rp) function c22261002.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0 return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0
end end
function c22261002.thfilter1(c) function c22261002.thfilter1(c)
......
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