Commit 126a562d authored by kamijyoeast's avatar kamijyoeast Committed by GitHub

Update_20210529_10:23 (#49)

* Add files via upload

* Add files via upload
parent c1deebe6
...@@ -6,7 +6,7 @@ function c100730041.initial_effect(c) ...@@ -6,7 +6,7 @@ function c100730041.initial_effect(c)
end end
function c100730041.IsBlueEyes(c) function c100730041.IsBlueEyes(c)
return c:IsOriginalCodeRule(89631139) and c:IsFaceup() return c:IsType(TYPE_MONSTER) and aux.IsCodeListed(c,89631139) and c:IsFaceup() and not c:IsOriginalCodeRule(38517737)
end end
function c100730041.con(e,tp) function c100730041.con(e,tp)
......
...@@ -6,6 +6,8 @@ function c100730046.initial_effect(c) ...@@ -6,6 +6,8 @@ function c100730046.initial_effect(c)
end end
function c100730046.skill(e,tp,eg,ep,ev,re,r,rp) function c100730046.skill(e,tp,eg,ep,ev,re,r,rp)
tp=e:GetLabelObject():GetOwner() tp=e:GetLabelObject():GetOwner()
local c=Duel.CreateToken(tp,88789641)
Duel.SendtoHand(c,tp,REASON_RULE)
local e1=Effect.GlobalEffect() local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_REVERSE_DAMAGE) e1:SetCode(EFFECT_REVERSE_DAMAGE)
......
...@@ -13,10 +13,13 @@ function c100730102.con(e,tp) ...@@ -13,10 +13,13 @@ function c100730102.con(e,tp)
tp=e:GetLabelObject():GetOwner() tp=e:GetLabelObject():GetOwner()
return aux.SpeedDuelAtMainPhaseCondition(e,tp) return aux.SpeedDuelAtMainPhaseCondition(e,tp)
and Duel.IsExistingMatchingCard(c100730102.Ismask,tp,LOCATION_MZONE+LOCATION_SZONE,0,1,nil) and Duel.IsExistingMatchingCard(c100730102.Ismask,tp,LOCATION_MZONE+LOCATION_SZONE,0,1,nil)
and Duel.GetMZoneCount(tp)>0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
end end
function c100730102.skill(e,tp) function c100730102.skill(e,tp)
Duel.Hint(HINT_CARD,1-tp,100730102) Duel.Hint(HINT_CARD,1-tp,100730102)
local d=Duel.CreateToken(tp,29549364) local d=Duel.CreateToken(tp,29549364)
Duel.MoveToField(d,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(d,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,1,nil,53046408)
if g1:GetCount()==0 then return end
Duel.SendtoHand(g1,tp,REASON_RULE)
end end
\ No newline at end of file
...@@ -22,7 +22,7 @@ function c100730103.skill(e,tp,c) ...@@ -22,7 +22,7 @@ function c100730103.skill(e,tp,c)
local d1=Duel.CreateToken(tp,5818798) local d1=Duel.CreateToken(tp,5818798)
local d2=Duel.CreateToken(tp,77207191) local d2=Duel.CreateToken(tp,77207191)
Duel.SpecialSummon(d1,0,tp,tp,true,true,POS_FACEUP) Duel.SpecialSummon(d1,0,tp,tp,true,true,POS_FACEUP)
Duel.SpecialSummon(d2,0,tp,tp,true,true,POS_FACEUP) Duel.SpecialSummon(d2,0,tp,tp,true,true,POS_FACEDOWN_DEFENSE)
Duel.SendtoDeck(d,tp,0,REASON_RULE) Duel.SendtoDeck(d,tp,0,REASON_RULE)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(c100730103.filter1,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(c100730103.filter1,nil,e)
...@@ -54,7 +54,7 @@ function c100730103.skill(e,tp,c) ...@@ -54,7 +54,7 @@ function c100730103.skill(e,tp,c)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,3,nil,46009906) local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,3,nil,46009906,76539047)
if g1:GetCount()>=1 then if g1:GetCount()>=1 then
Duel.SendtoHand(g1,tp,REASON_RULE) Duel.SendtoHand(g1,tp,REASON_RULE)
end end
......
...@@ -4,6 +4,7 @@ function c100730126.initial_effect(c) ...@@ -4,6 +4,7 @@ function c100730126.initial_effect(c)
aux.SpeedDuelMoveCardToDeckCommon(23995346,c) aux.SpeedDuelMoveCardToDeckCommon(23995346,c)
aux.SpeedDuelMoveCardToDeckCommon(56532353,c) aux.SpeedDuelMoveCardToDeckCommon(56532353,c)
aux.SpeedDuelMoveCardToDeckCommon(2129638,c) aux.SpeedDuelMoveCardToDeckCommon(2129638,c)
aux.SpeedDuelMoveCardToDeckCommon(62873545,c)
aux.SpeedDuelMoveCardToDeckCommon(43228023,c) aux.SpeedDuelMoveCardToDeckCommon(43228023,c)
aux.SpeedDuelAtMainPhase(c,c100730126.skill,c100730126.con,aux.Stringid(100730106,0)) aux.SpeedDuelAtMainPhase(c,c100730126.skill,c100730126.con,aux.Stringid(100730106,0))
aux.RegisterSpeedDuelSkillCardCommon() aux.RegisterSpeedDuelSkillCardCommon()
......
...@@ -10,10 +10,6 @@ function c100730129.skill(e,tp,eg,ep,ev,re,r,rp) ...@@ -10,10 +10,6 @@ function c100730129.skill(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,1-tp,100730129) Duel.Hint(HINT_CARD,1-tp,100730129)
local c=Duel.CreateToken(tp,81020646) local c=Duel.CreateToken(tp,81020646)
Duel.SendtoDeck(c,nil,0,REASON_RULE) Duel.SendtoDeck(c,nil,0,REASON_RULE)
local d=Duel.CreateToken(tp,13582837)
Duel.SendtoDeck(d,nil,0,REASON_RULE)
local xc=Duel.CreateToken(tp,82434071)
Duel.SendtoDeck(xc,nil,0,REASON_RULE)
local d1=Duel.CreateToken(tp,45313724) local d1=Duel.CreateToken(tp,45313724)
Duel.SendtoDeck(d1,nil,0,REASON_RULE) Duel.SendtoDeck(d1,nil,0,REASON_RULE)
local d2=Duel.CreateToken(tp,18712704) local d2=Duel.CreateToken(tp,18712704)
...@@ -24,18 +20,18 @@ function c100730129.skill(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,18 +20,18 @@ function c100730129.skill(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(d4,nil,0,REASON_RULE) Duel.SendtoDeck(d4,nil,0,REASON_RULE)
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
aux.SpeedDuelSendToDeckWithExile(tp,g) aux.SpeedDuelSendToDeckWithExile(tp,g)
local sg=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK,0,nil,45313724,66957584,40555959,14550855,18712704)
local g1=sg:SelectSubGroup(tp,aux.dncheck,false,3,3)
Duel.SSet(tp,g1)
local d=Duel.CreateToken(tp,13582837)
Duel.Summon(tp,d,false,nil)
local g2=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_EXTRA,0,1,1,nil,72896720) local g2=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_EXTRA,0,1,1,nil,72896720)
if g2:GetCount()>0 then if g2:GetCount()>0 then
Duel.SpecialSummon(g2,0,tp,tp,true,false,POS_FACEUP_ATTACK,0x60) Duel.SpecialSummon(g2,0,tp,tp,true,false,POS_FACEUP_ATTACK,0x60)
local sc=Duel.CreateToken(tp,5560911) local sc=Duel.CreateToken(tp,5560911)
Duel.SpecialSummon(sc,0,tp,tp,true,true,POS_FACEUP_ATTACK) Duel.SpecialSummon(sc,0,tp,tp,true,true,POS_FACEUP_DEFENSE)
local g3=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK,0,1,1,nil,13582837,82434071) local xc=Duel.CreateToken(tp,18590133)
local tc=g3:GetFirst() Duel.SpecialSummon(xc,0,tp,tp,true,true,POS_FACEDOWN_DEFENSE)
Duel.Summon(tp,tc,false,nil)
Duel.Summon(tp,d,false,nil)
local sg=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK,0,nil,45313724,66957584,40555959,14550855,18712704)
local g1=sg:SelectSubGroup(tp,aux.dncheck,false,3,3)
Duel.SSet(tp,g1)
end end
e:Reset() e:Reset()
end end
\ No newline at end of file
...@@ -10,10 +10,6 @@ function c100730130.skill(e,tp,eg,ep,ev,re,r,rp) ...@@ -10,10 +10,6 @@ function c100730130.skill(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,1-tp,100730130) Duel.Hint(HINT_CARD,1-tp,100730130)
local c=Duel.CreateToken(tp,81020646) local c=Duel.CreateToken(tp,81020646)
Duel.SendtoDeck(c,nil,0,REASON_RULE) Duel.SendtoDeck(c,nil,0,REASON_RULE)
local d=Duel.CreateToken(tp,13582837)
Duel.SendtoDeck(d,nil,0,REASON_RULE)
local xc=Duel.CreateToken(tp,46263076)
Duel.SendtoDeck(xc,nil,0,REASON_RULE)
local d1=Duel.CreateToken(tp,18739764) local d1=Duel.CreateToken(tp,18739764)
Duel.SendtoDeck(d1,nil,0,REASON_RULE) Duel.SendtoDeck(d1,nil,0,REASON_RULE)
local d2=Duel.CreateToken(tp,39967326) local d2=Duel.CreateToken(tp,39967326)
...@@ -24,17 +20,18 @@ function c100730130.skill(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,17 +20,18 @@ function c100730130.skill(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(d4,nil,0,REASON_RULE) Duel.SendtoDeck(d4,nil,0,REASON_RULE)
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
aux.SpeedDuelSendToDeckWithExile(tp,g) aux.SpeedDuelSendToDeckWithExile(tp,g)
local sg=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK,0,nil,18739764,66957584,40555959,77859858,39967326)
local g1=sg:SelectSubGroup(tp,aux.dncheck,false,3,3)
Duel.SSet(tp,g1)
local d=Duel.CreateToken(tp,13582837)
Duel.Summon(tp,d,false,nil)
local g2=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_EXTRA,0,1,1,nil,95453143) local g2=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_EXTRA,0,1,1,nil,95453143)
if g2:GetCount()>0 then if g2:GetCount()>0 then
Duel.SpecialSummon(g2,0,tp,tp,true,false,POS_FACEUP_ATTACK,0x60) Duel.SpecialSummon(g2,0,tp,tp,true,false,POS_FACEUP_ATTACK,0x60)
local sc=Duel.CreateToken(tp,5560911) local sc=Duel.CreateToken(tp,5560911)
Duel.SpecialSummon(sc,0,tp,tp,true,true,POS_FACEUP_ATTACK) Duel.SpecialSummon(sc,0,tp,tp,true,true,POS_FACEUP_DEFENSE)
local g3=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK,0,1,1,nil,13582837,82434071) local xc=Duel.CreateToken(tp,32240937)
local tc=g3:GetFirst() Duel.SpecialSummon(xc,0,tp,tp,true,true,POS_FACEDOWN_DEFENSE)
Duel.Summon(tp,tc,false,nil)
local sg=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK,0,nil,18739764,66957584,40555959,77859858,39967326)
local g1=sg:SelectSubGroup(tp,aux.dncheck,false,3,3)
Duel.SSet(tp,g1)
end end
e:Reset() e:Reset()
end end
\ No newline at end of file
...@@ -6,6 +6,8 @@ function c100730164.initial_effect(c) ...@@ -6,6 +6,8 @@ function c100730164.initial_effect(c)
end end
function c100730164.skill(e,tp,eg,ep,ev,re,r,rp) function c100730164.skill(e,tp,eg,ep,ev,re,r,rp)
tp=e:GetLabelObject():GetOwner() tp=e:GetLabelObject():GetOwner()
local c=Duel.CreateToken(tp,82085619)
Duel.SendtoHand(c,tp,REASON_RULE)
local e1=Effect.GlobalEffect() local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_REVERSE_DAMAGE) e1:SetCode(EFFECT_REVERSE_DAMAGE)
......
...@@ -16,34 +16,32 @@ function c100730171.con(e,tp) ...@@ -16,34 +16,32 @@ function c100730171.con(e,tp)
tp=e:GetLabelObject():GetOwner() tp=e:GetLabelObject():GetOwner()
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,nil)
and Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsExistingMatchingCard(c100730171.filter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil)
and Duel.IsExistingMatchingCard(c100730171.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil)
and Duel.GetMZoneCount(tp)>0 and Duel.GetMZoneCount(tp)>0
and aux.DecreasedLP[tp]-c100730171.UsedLP[tp]>=1800
end end
function c100730171.skill1(e,tp,eg,ep,ev,re,r,rp) function c100730171.skill1(e,tp,eg,ep,ev,re,r,rp)
tp=e:GetLabelObject():GetOwner() tp=e:GetLabelObject():GetOwner()
if Duel.SelectYesNo(tp,aux.Stringid(100730171,1)) then if Duel.SelectYesNo(tp,aux.Stringid(100730171,1)) then
c100730171.UsedLP[tp]=c100730171.UsedLP[tp]+1800 local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,1,nil)
local g1=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local c=g1:GetFirst()
Duel.Hint(HINT_CARD,1-tp,100730171) Duel.Hint(HINT_CARD,1-tp,100730171)
Duel.SendtoDeck(c,nil,1,REASON_RULE) Duel.SendtoDeck(g:GetFirst(),nil,1,REASON_RULE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON)
local g=Duel.SelectMatchingCard(tp,c100730171.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil) local sg=Duel.SelectMatchingCard(tp,c100730171.filter,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
Duel.SpecialSummon(g:GetFirst(),0,tp,tp,false,false,POS_FACEUP) Duel.Summon(tp,sg:GetFirst(),false,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) if aux.DecreasedLP[tp]-c100730171.UsedLP[tp]>=1800 then
local g3=Duel.SelectMatchingCard(tp,Card.IsType,tp,LOCATION_DECK,0,0,1,nil,TYPE_QUICKPLAY) c100730171.UsedLP[tp]=c100730171.UsedLP[tp]+1800
if g3:GetCount()==0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
Duel.SendtoHand(g3,nil,REASON_EFFECT) local g1=Duel.SelectMatchingCard(tp,Card.IsType,tp,LOCATION_DECK,0,0,1,nil,TYPE_QUICKPLAY)
Duel.ConfirmCards(1-tp,g3) Duel.SendtoHand(g1,nil,REASON_EFFECT)
if Duel.GetMZoneCount(1-tp)>0 and Duel.SelectYesNo(tp,aux.Stringid(100730171,0)) then Duel.ConfirmCards(1-tp,g1)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g2=Duel.GetMatchingGroup(c100730171.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil)
local g2=Duel.SelectMatchingCard(tp,c100730171.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil) if Duel.GetMZoneCount(1-tp)>0 and g2:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(100730171,0)) then
if g2:GetCount()==0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Duel.SpecialSummon(g2:GetFirst(),0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) local c=g2:Select(tp,1,1,nil)
Duel.SpecialSummon(c,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE)
end
end end
end end
end end
...@@ -82,7 +80,7 @@ end ...@@ -82,7 +80,7 @@ end
function c100730171.filter(c) function c100730171.filter(c)
return c:IsSetCard(0x41) and c:IsLevelBelow(4) return c:IsSetCard(0x41) and c:IsLevelBelow(4)
end end
function c100730171.efilter(e,te) function c100730171.efilter(e,te)
return not te:GetOwner():IsType(TYPE_SPELL) and not te:GetOwner():IsSetCard(0x41) and te:IsActivated() return not te:GetOwner():IsType(TYPE_SPELL) and not te:GetOwner():IsSetCard(0x41) and te:IsActivated()
end end
function c100730171.val(e,c) function c100730171.val(e,c)
......
...@@ -6,32 +6,54 @@ function c100730192.initial_effect(c) ...@@ -6,32 +6,54 @@ function c100730192.initial_effect(c)
end end
function c100730192.skill(e,tp) function c100730192.skill(e,tp)
tp=e:GetLabelObject():GetOwner() tp=e:GetLabelObject():GetOwner()
Duel.Hint(HINT_CARD,1-tp,100730192)
Duel.Recover(1-tp,2000,REASON_EFFECT)
Duel.Recover(tp,2000,REASON_EFFECT)
local count=1 local count=1
if Duel.GetTurnPlayer()~=tp then if Duel.GetTurnPlayer()~=tp then
count=2 count=2
end end
local e1=Effect.GlobalEffect() local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetTargetRange(LOCATION_MZONE,0) e1:SetCode(EVENT_PHASE_START+PHASE_END)
e1:SetTarget(c100730192.filter) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_IMMUNE_EFFECT) e1:SetCountLimit(1)
e1:SetCondition(c100730192.limcon) e1:SetCondition(c100730192.con)
e1:SetReset(RESET_PHASE+PHASE_END,count) e1:SetReset(RESET_PHASE+PHASE_END,count)
e1:SetValue(c100730192.efilter) e1:SetOperation(c100730192.op)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
e:Reset() e:Reset()
end end
function c100730192.filter(e,c) function c100730192.filter(c)
return c:IsRace(RACE_FAIRY) and c:IsFaceup() return c:IsRace(RACE_FAIRY) and c:IsFaceup() and c:IsStatus(STATUS_SUMMON_TURN)
end end
function c100730192.efilter(e,te) function c100730192.op(e,tp,eg,ep,ev,re,r,rp)
return not te:GetOwner():IsRace(RACE_FAIRY) Duel.Hint(HINT_CARD,1-tp,100730192)
Duel.Recover(tp,2000,REASON_EFFECT)
local d=Duel.CreateToken(tp,45667991)
local d1=Duel.CreateToken(tp,54387923)
Duel.SpecialSummon(d1,0,tp,tp,true,true,POS_FACEUP_ATTACK)
Duel.SpecialSummon(d,0,tp,tp,true,true,POS_FACEUP_DEFENSE)
local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_MZONE,0,2,2,nil,45667991,54387923)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local c=Duel.CreateToken(tp,92015800)
Duel.SendtoDeck(c,tp,1,REASON_RULE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g2=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_EXTRA,0,1,1,nil,92015800)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=g2:GetFirst()
if tc then
Duel.BreakEffect()
tc:SetMaterial(g1)
Duel.Overlay(tc,g1)
Duel.SpecialSummon(tc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)
tc:CompleteProcedure()
local g3=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_HAND,0,0,1,nil,17201174)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
if Duel.GetMZoneCount(tp)<1 or g3:GetCount()==0 then return end
local sc=g3:GetFirst()
Duel.SpecialSummon(sc,0,tp,tp,true,true,POS_FACEUP)
end
end end
function c100730192.limcon(e) function c100730192.con(e,tp,eg,ep,ev,re,r,rp)
if count==2 then return Duel.GetTurnCount()==2 end if count==2 then return Duel.GetTurnCount()==2 end
return true return Duel.IsExistingMatchingCard(c100730192.filter,tp,LOCATION_MZONE,0,1,nil)and Duel.IsExistingMatchingCard(Card.IsFacedown,tp,LOCATION_SZONE,0,2,nil) and Duel.GetMZoneCount(tp)>1
end end
...@@ -8,26 +8,16 @@ function c100730195.con(e,tp) ...@@ -8,26 +8,16 @@ function c100730195.con(e,tp)
tp=e:GetLabelObject():GetOwner() tp=e:GetLabelObject():GetOwner()
return aux.SpeedDuelAtMainPhaseCondition(e,tp) return aux.SpeedDuelAtMainPhaseCondition(e,tp)
and Duel.IsExistingMatchingCard(c100730195.filter,tp,LOCATION_HAND,0,1,nil) and Duel.IsExistingMatchingCard(c100730195.filter,tp,LOCATION_HAND,0,1,nil)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,13048472)
end end
function c100730195.skill(e,tp,eg,ep,ev,re,r,rp) function c100730195.skill(e,tp,eg,ep,ev,re,r,rp)
tp=e:GetLabelObject():GetOwner() tp=e:GetLabelObject():GetOwner()
Duel.Hint(HINT_CARD,1-tp,100730195) Duel.Hint(HINT_CARD,1-tp,100730195)
local g=Duel.SelectMatchingCard(tp,c100730195.filter,tp,LOCATION_HAND,0,1,1,nil,tp) local g=Duel.SelectMatchingCard(tp,c100730195.filter,tp,LOCATION_HAND,0,1,1,nil,tp)
if g:GetCount()>0 then Duel.ConfirmCards(1-tp,g)
Duel.ConfirmCards(1-tp,g) local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,13048472)
local mg=Duel.GetMatchingGroup(c100730195.filter2,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil,g:GetFirst()) Duel.SendtoHand(g1,tp,REASON_RULE)
if mg:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=mg:Select(tp,1,1,nil)
Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end
end
end end
function c100730195.filter(c,tp) function c100730195.filter(c)
return bit.band(c:GetType(),0x82)==0x82 return bit.band(c:GetType(),0x81)==0x81
and Duel.IsExistingMatchingCard(c100730195.filter2,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,c)
end
function c100730195.filter2(c,mc)
return bit.band(c:GetType(),0x81)==0x81 and c:IsAbleToHand() and aux.IsCodeListed(mc,c:GetCode())
end end
\ No newline at end of file
...@@ -37,7 +37,7 @@ function c100730201.skill2(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c100730201.skill2(e,tp,eg,ep,ev,re,r,rp)
local c=Duel.CreateToken(tp,68543408) local c=Duel.CreateToken(tp,68543408)
g:AddCard(c) g:AddCard(c)
aux.CardAddedBySkill:AddCard(c) aux.CardAddedBySkill:AddCard(c)
c=Duel.CreateToken(tp,80244114) c=Duel.CreateToken(tp,37799519)
g:AddCard(c) g:AddCard(c)
aux.CardAddedBySkill:AddCard(c) aux.CardAddedBySkill:AddCard(c)
Duel.SendtoGrave(g,REASON_RULE) Duel.SendtoGrave(g,REASON_RULE)
......
...@@ -31,10 +31,10 @@ end ...@@ -31,10 +31,10 @@ end
function c100730202.skill2(e,tp,eg,ep,ev,re,r,rp) function c100730202.skill2(e,tp,eg,ep,ev,re,r,rp)
tp = e:GetLabelObject():GetOwner() tp = e:GetLabelObject():GetOwner()
local g=Group.CreateGroup() local g=Group.CreateGroup()
local c=Duel.CreateToken(tp,68543408) local c=Duel.CreateToken(tp,80244114)
g:AddCard(c) g:AddCard(c)
aux.CardAddedBySkill:AddCard(c) aux.CardAddedBySkill:AddCard(c)
c=Duel.CreateToken(tp,80244114) c=Duel.CreateToken(tp,63184227)
g:AddCard(c) g:AddCard(c)
aux.CardAddedBySkill:AddCard(c) aux.CardAddedBySkill:AddCard(c)
Duel.SendtoGrave(g,REASON_RULE) Duel.SendtoGrave(g,REASON_RULE)
......
...@@ -13,10 +13,13 @@ function c100730238.con(e,tp) ...@@ -13,10 +13,13 @@ function c100730238.con(e,tp)
tp=e:GetLabelObject():GetOwner() tp=e:GetLabelObject():GetOwner()
return aux.SpeedDuelAtMainPhaseCondition(e,tp) return aux.SpeedDuelAtMainPhaseCondition(e,tp)
and Duel.IsExistingMatchingCard(c100730238.filter,tp,LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c100730238.filter,tp,LOCATION_MZONE,0,1,nil)
and Duel.GetMZoneCount(tp)>0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
end end
function c100730238.skill(e,tp) function c100730238.skill(e,tp)
Duel.Hint(HINT_CARD,1-tp,100730238) Duel.Hint(HINT_CARD,1-tp,100730238)
local d=Duel.CreateToken(tp,49328340) local d=Duel.CreateToken(1-tp,49328340)
Duel.MoveToField(d,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(d,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,1,nil,34370473)
if g1:GetCount()==0 then return end
Duel.SendtoHand(g1,tp,REASON_RULE)
end end
\ No newline at end of file
...@@ -26,6 +26,9 @@ function c100730252.skill(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,6 +26,9 @@ function c100730252.skill(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_UPDATE_DEFENSE) e2:SetCode(EFFECT_UPDATE_DEFENSE)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end end
local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,1,nil,25880422,63102017)
if g1:GetCount()==0 then return end
Duel.SendtoHand(g1,tp,REASON_RULE)
end end
function c100730252.filter(c) function c100730252.filter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAttackAbove(0) return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAttackAbove(0)
......
...@@ -28,6 +28,9 @@ function c100730270.skill(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,6 +28,9 @@ function c100730270.skill(e,tp,eg,ep,ev,re,r,rp)
e3:SetValue(RESET_TURN_SET) e3:SetValue(RESET_TURN_SET)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
sc:RegisterEffect(e3) sc:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetCode(EFFECT_CANNOT_ATTACK)
sc:RegisterEffect(e4)
end end
local g1=Duel.SelectMatchingCard(tp,c100730270.filter,tp,0,LOCATION_MZONE,1,1,nil) local g1=Duel.SelectMatchingCard(tp,c100730270.filter,tp,0,LOCATION_MZONE,1,1,nil)
local tc=g1:GetFirst() local tc=g1:GetFirst()
...@@ -43,6 +46,13 @@ function c100730270.skill(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,6 +46,13 @@ function c100730270.skill(e,tp,eg,ep,ev,re,r,rp)
e3:SetValue(RESET_TURN_SET) e3:SetValue(RESET_TURN_SET)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
e4:SetRange(LOCATION_SZONE)
e4:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e4:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e4)
end end
end end
function c100730270.filter(c) function c100730270.filter(c)
......
...@@ -32,7 +32,7 @@ function c100730273.skill(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c100730273.skill(e,tp,eg,ep,ev,re,r,rp)
g:GetFirst():RegisterEffect(e1) g:GetFirst():RegisterEffect(e1)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
end end
local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,3,nil,126218) local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,1,nil,12760674)
if g1:GetCount()==0 then return end if g1:GetCount()==0 then return end
Duel.SendtoHand(g1,tp,REASON_RULE) Duel.SendtoHand(g1,tp,REASON_RULE)
end end
\ No newline at end of file
...@@ -23,6 +23,9 @@ function c100730274.skill(e,tp,eg,ep,ev,re,r,rp) ...@@ -23,6 +23,9 @@ function c100730274.skill(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(500) e1:SetValue(500)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,1,nil,78211862)
if g1:GetCount()==0 then return end
Duel.SendtoHand(g1,tp,REASON_RULE)
end end
function c100730274.filter(c) function c100730274.filter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsType(TYPE_MONSTER)
......
...@@ -8,6 +8,7 @@ function c100730291.initial_effect(c) ...@@ -8,6 +8,7 @@ function c100730291.initial_effect(c)
end end
aux.SpeedDuelCalculateDecreasedLP() aux.SpeedDuelCalculateDecreasedLP()
aux.SpeedDuelAtMainPhase(c,c100730291.skill,c100730291.con,aux.Stringid(100730291,1)) aux.SpeedDuelAtMainPhase(c,c100730291.skill,c100730291.con,aux.Stringid(100730291,1))
aux.SpeedDuelAtMainPhase(c,c100730291.skill1,c100730291.con1,aux.Stringid(100730291,0))
aux.RegisterSpeedDuelSkillCardCommon() aux.RegisterSpeedDuelSkillCardCommon()
end end
function c100730291.con(e,tp) function c100730291.con(e,tp)
...@@ -31,4 +32,19 @@ function c100730291.skill(e,tp) ...@@ -31,4 +32,19 @@ function c100730291.skill(e,tp)
if sg:GetCount()<1 then return end if sg:GetCount()<1 then return end
Duel.MoveSequence(sg:GetFirst(),0) Duel.MoveSequence(sg:GetFirst(),0)
end end
end
function c100730291.con1(e,tp)
tp=e:GetLabelObject():GetOwner()
return aux.SpeedDuelAtMainPhaseCondition(e,tp)
and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,nil)
end
function c100730291.skill1(e,tp,c)
tp=e:GetLabelObject():GetOwner()
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,1,nil)
local c=g:GetFirst()
if c then
Duel.Hint(HINT_CARD,1-tp,100730291)
Duel.SendtoDeck(c,1-tp,nil,0,REASON_RULE)
Duel.ShuffleDeck(1-tp)
end
end end
\ No newline at end of file
...@@ -14,7 +14,7 @@ function c100730308.skill(e,tp) ...@@ -14,7 +14,7 @@ function c100730308.skill(e,tp)
Duel.Hint(HINT_CARD,1-tp,100730308) Duel.Hint(HINT_CARD,1-tp,100730308)
local ct=Duel.TossDice(tp,1) local ct=Duel.TossDice(tp,1)
Duel.Recover(tp,ct*200,REASON_EFFECT) Duel.Recover(tp,ct*200,REASON_EFFECT)
local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,1,nil,43061293) local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,1,nil,126218)
Duel.SendtoHand(g1,tp,REASON_RULE) Duel.SendtoHand(g1,tp,REASON_RULE)
if ct==1 or ct==6 then return end if ct==1 or ct==6 then return end
e:Reset() e:Reset()
......
--高速决斗技能-纹章展开
Duel.LoadScript("speed_duel_common.lua")
function c100730312.initial_effect(c)
aux.SpeedDuelAtMainPhase(c,c100730312.skill,c100730312.con,aux.Stringid(100730312,0))
aux.RegisterSpeedDuelSkillCardCommon()
end
function c100730312.con(e,tp)
tp=e:GetLabelObject():GetOwner()
return aux.SpeedDuelAtMainPhaseCondition(e,tp)
and Duel.GetMZoneCount(tp)>0
end
function c100730312.skill(e,tp,c)
tp=e:GetLabelObject():GetOwner()
Duel.Hint(HINT_CARD,1-tp,100730312)
local d=Duel.TossDice(tp,1)
local count=Duel.GetTurnCount()
if d>=count then return end
local c=Duel.CreateToken(tp,15744417)
Duel.MoveToField(c,tp,tp,LOCATION_MZONE,POS_FACEUP,true)
e:Reset()
local g1=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,0,1,nil,43061293)
if g1:GetCount()==0 then return end
Duel.SendtoHand(g1,tp,REASON_RULE)
end
\ No newline at end of file
--高速决斗技能-卡组统领:速攻的黑衣忍者
Duel.LoadScript("speed_duel_common.lua")
function c100730313.initial_effect(c)
aux.SpeedDuelAtMainPhase(c,c100730313.skill,c100730313.con,aux.Stringid(100730313,0))
aux.SpeedDuelAtMainPhase(c,c100730313.skill1,c100730313.con1,aux.Stringid(100730313,1))
aux.SpeedDuelAtMainPhase(c,c100730313.skill2,c100730313.con2,aux.Stringid(100730313,2))
aux.RegisterSpeedDuelSkillCardCommon()
end
function c100730313.con(e,tp)
tp=e:GetLabelObject():GetOwner()
return aux.SpeedDuelAtMainPhaseCondition(e,tp)
and Duel.GetLP(tp)<=5000
and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_SZONE,1,nil)
and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_HAND,0,1,nil,0x2b,0x61)
and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
end
function c100730313.skill(e,tp)
tp=e:GetLabelObject():GetOwner()
local c=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_HAND,0,1,1,nil,0x2b,0x61):GetFirst()
Duel.SendtoGrave(c,REASON_EFFECT)
Duel.Hint(HINT_CARD,1-tp,100730313)
local tc=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_SZONE,1,1,nil):GetFirst()
if tc:IsLocation(LOCATION_FZONE) then
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,tc:GetPosition(),true)
else
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,tc:GetPosition(),true)
end
e:Reset()
end
function c100730313.con1(e,tp)
tp=e:GetLabelObject():GetOwner()
return aux.SpeedDuelAtMainPhaseCondition(e,tp)
and Duel.IsExistingMatchingCard(c100730313.filter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,64801562)
and Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0
and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
end
function c100730313.filter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x2b) and c:IsStatus(STATUS_SUMMON_TURN)
end
function c100730313.eqfilter(c)
return c:IsType(TYPE_EQUIP)
end
function c100730313.skill1(e,tp)
tp=e:GetLabelObject():GetOwner()
Duel.Hint(HINT_CARD,1-tp,100730313)
local g1=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_MZONE,0,1,1,nil,0x2b)
local tc=g1:GetFirst()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g2=Duel.SelectMatchingCard(tp,Card.IsCode,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,64801562)
local eqc=g2:GetFirst()
Duel.Equip(tp,eqc,tc)
local c=Duel.CreateToken(1-tp,13250922)
Duel.SendtoHand(c,nil,REASON_RULE)
if tc:GetAttack()<=1300 then
local ft=Duel.GetLocationCount(1-tp,LOCATION_SZONE)
local g=Duel.SelectMatchingCard(tp,c100730313.eqfilter,tp,LOCATION_DECK,0,1,ft,nil)
Duel.SSet(1-tp,g)
else Duel.Destroy(eqc,REASON_EFFECT)
end
end
function c100730313.con2(e,tp)
tp=e:GetLabelObject():GetOwner()
return aux.SpeedDuelAtMainPhaseCondition(e,tp)
and Duel.GetLP(tp)<=5000
and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_SZONE,1,nil)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end
function c100730313.skill2(e,tp)
tp=e:GetLabelObject():GetOwner()
local c=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_SZONE,1,1,nil):GetFirst()
Duel.Remove(c,POS_FACEUP,REASON_EFFECT)
Duel.Hint(HINT_CARD,1-tp,100730313)
local tc=Duel.CreateToken(tp,41006930)
Duel.MoveToField(tc,tp,tp,LOCATION_MZONE,POS_FACEUP_ATTACK,true)
e:Reset()
end
\ No newline at end of file
--小调七音服·阿米娅
function c173309161.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c,false)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(1160)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND)
e1:SetCost(c173309161.reg)
c:RegisterEffect(e1)
--lvdown
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(173309161,0))
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_HAND)
e4:SetCountLimit(1)
e4:SetCost(c173309161.lvcost)
e4:SetTarget(c173309161.lvtg)
e4:SetOperation(c173309161.lvop)
c:RegisterEffect(e4)
--to hand
local e5=Effect.CreateEffect(c)
e5:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e5:SetType(EFFECT_TYPE_IGNITION)
e5:SetRange(LOCATION_PZONE)
e5:SetCountLimit(1,173309161)
e5:SetCondition(c173309161.thcon)
e5:SetTarget(c173309161.thtg)
e5:SetOperation(c173309161.thop)
c:RegisterEffect(e5)
end
function c173309161.reg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
e:GetHandler():RegisterFlagEffect(173309161,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end
function c173309161.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(173309161)~=0 and Duel.IsExistingMatchingCard(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,e:GetHandler(),0x162)
end
function c173309161.thfilter(c)
return c:IsSetCard(0x162) and c:IsAbleToHand()
end
function c173309161.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c173309161.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c173309161.thop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c173309161.thfilter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
function c173309161.lvcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end
Duel.SendtoGrave(e:GetHandler(),REASON_DISCARD)
end
function c173309161.filter(c)
return c:IsSetCard(0x162) and c:IsType(TYPE_PENDULUM)
end
function c173309161.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c173309161.filter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
end
function c173309161.afilter(c,code)
return c:IsCode(code)
end
function c173309161.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(tp,c173309161.filter,tp,LOCATION_HAND,0,1,1,nil)
Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp)
local hg=Duel.GetMatchingGroup(c173309161.afilter,tp,LOCATION_HAND,0,nil,g:GetFirst():GetCode())
local tc=hg:GetFirst()
while tc do
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_LEVEL)
e1:SetValue(tc:GetLeftScale())
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
tc=hg:GetNext()
end
end
--影六武众-千代
function c574218661.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(574218661,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_GRAVE+LOCATION_HAND)
e1:SetTarget(c574218661.target)
e1:SetOperation(c574218661.operation)
c:RegisterEffect(e1)
--spsummon limit
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,0)
e2:SetTarget(c574218661.sslimit)
c:RegisterEffect(e2)
end
function c574218661.filter(c)
return c:IsFaceup() and c:IsLevelBelow(4) and c:IsSetCard(0x3d)
end
function c574218661.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c574218661.filter(chkc) end
local c=e:GetHandler()
if chk==0 then return Duel.IsExistingTarget(c574218661.filter,tp,LOCATION_MZONE,0,1,nil)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(574218661,1))
Duel.SelectTarget(tp,c574218661.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end
function c574218661.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsFacedown() or not tc:IsRelateToEffect(e) or tc:IsImmuneToEffect(e) or tc:GetLevel()>4 then return end
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(2)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(800)
tc:RegisterEffect(e2)
if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
end
function c574218661.sslimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsLocation(LOCATION_EXTRA)
end
\ No newline at end of file
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