Skip to content

Commit abccf3a

Browse files
committed
Add back pre release
1 parent 789a45d commit abccf3a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+7310
-0
lines changed

pre-release/c100200271.lua

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
--試号閃刀姫-アマツ
2+
--Prototype Sky Striker Ace - Amatsu
3+
--Scripted by ahtelel
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
c:EnableReviveLimit()
7+
--Link Summon procedure: 1 "Sky Striker Ace" monster
8+
Link.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_SKY_STRIKER_ACE),1)
9+
--You can only Special Summon "Protoype Sky Striker Ace - Amatsu" once per turn
10+
c:SetSPSummonOnce(id)
11+
--Make the effect of a monster your opponent controls with 2000 or more ATK become "Destroy 1 "Sky Striker Ace" Link Monster your opponent controls"
12+
local e1=Effect.CreateEffect(c)
13+
e1:SetDescription(aux.Stringid(id,0))
14+
e1:SetType(EFFECT_TYPE_QUICK_O)
15+
e1:SetCode(EVENT_CHAINING)
16+
e1:SetRange(LOCATION_MZONE)
17+
e1:SetCountLimit(1,id)
18+
e1:SetCondition(s.chngcon)
19+
e1:SetTarget(s.chngtg)
20+
e1:SetOperation(s.chngop)
21+
c:RegisterEffect(e1)
22+
--Destroy 1 "Sky Striker Ace" monster you control and 1 card your opponent controls
23+
local e2=Effect.CreateEffect(c)
24+
e2:SetDescription(aux.Stringid(id,1))
25+
e2:SetCategory(CATEGORY_DESTROY)
26+
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
27+
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
28+
e2:SetCode(EVENT_ATTACK_ANNOUNCE)
29+
e2:SetRange(LOCATION_MZONE)
30+
e2:SetCountLimit(1,{id,1})
31+
e2:SetCondition(s.descon)
32+
e2:SetTarget(s.destg)
33+
e2:SetOperation(s.desop)
34+
c:RegisterEffect(e2)
35+
end
36+
s.listed_names={id}
37+
s.listed_series={SET_SKY_STRIKER_ACE}
38+
function s.chngcon(e,tp,eg,ep,ev,re,r,rp)
39+
local loc,atk=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_ATTACK)
40+
return rp==1-tp and atk>=2000 and loc==LOCATION_MZONE
41+
end
42+
function s.chngfilter(c)
43+
return c:IsSetCard(SET_SKY_STRIKER_ACE) and c:IsLinkMonster()
44+
end
45+
function s.chngtg(e,tp,eg,ep,ev,re,r,rp,chk)
46+
if chk==0 then return Duel.IsExistingMatchingCard(s.chngfilter,rp,0,LOCATION_MZONE,1,nil) end
47+
end
48+
function s.chngop(e,tp,eg,ep,ev,re,r,rp)
49+
local g=Group.CreateGroup()
50+
Duel.ChangeTargetCard(ev,g)
51+
Duel.ChangeChainOperation(ev,s.repop)
52+
end
53+
function s.repop(e,tp,eg,ep,ev,re,r,rp)
54+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
55+
local g=Duel.SelectMatchingCard(tp,s.chngfilter,tp,0,LOCATION_MZONE,1,1,nil)
56+
if #g>0 then
57+
Duel.HintSelection(g)
58+
Duel.Destroy(g,REASON_EFFECT)
59+
end
60+
end
61+
function s.descon(e,tp,eg,ep,ev,re,r,rp)
62+
local bc1,bc2=Duel.GetBattleMonster(tp)
63+
return bc1==e:GetHandler() and bc2
64+
end
65+
function s.desfilter(c,e,tp)
66+
return c:IsCanBeEffectTarget(e) and (c:IsControler(1-tp) or (c:IsSetCard(SET_SKY_STRIKER_ACE) and c:IsFaceup()))
67+
end
68+
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
69+
if chkc then return false end
70+
local g=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_MZONE,LOCATION_ONFIELD,nil,e,tp)
71+
if chk==0 then return aux.SelectUnselectGroup(g,e,tp,2,2,aux.dpcheck(Card.GetControler),0) end
72+
local tg=aux.SelectUnselectGroup(g,e,tp,2,2,aux.dpcheck(Card.GetControler),1,tp,HINTMSG_DESTROY)
73+
Duel.SetTargetCard(tg)
74+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tg,2,tp,0)
75+
end
76+
function s.desop(e,tp,eg,ep,ev,re,r,rp)
77+
local tg=Duel.GetTargetCards(e)
78+
if #tg>0 then
79+
Duel.Destroy(tg,REASON_EFFECT)
80+
end
81+
end

pre-release/c100295101.lua

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
--戦刀匠サイバ
2+
--Saiba the Fighting Swordsmith
3+
--scripted by pyrQ
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
c:EnableReviveLimit()
7+
--Synchro Summon procedure: 1 Tuner + 1+ non-Tuner monsters
8+
Synchro.AddProcedure(c,nil,1,1,Synchro.NonTuner(nil),1,99)
9+
--Special Summon 1 Level 6 or lower Warrior monster from your GY
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetDescription(aux.Stringid(id,0))
12+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
13+
e1:SetType(EFFECT_TYPE_IGNITION)
14+
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
15+
e1:SetRange(LOCATION_MZONE)
16+
e1:SetCountLimit(1,id)
17+
e1:SetTarget(s.sptg)
18+
e1:SetOperation(s.spop)
19+
c:RegisterEffect(e1)
20+
--Immediately after this effect resolves, Synchro Summon 1 Synchro Monster, using monsters you control as material, including a Warrior monster
21+
local e2=Effect.CreateEffect(c)
22+
e2:SetDescription(aux.Stringid(id,1))
23+
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
24+
e2:SetType(EFFECT_TYPE_QUICK_O)
25+
e2:SetCode(EVENT_FREE_CHAIN)
26+
e2:SetRange(LOCATION_MZONE)
27+
e2:SetCountLimit(1,{id,1})
28+
e2:SetHintTiming(0,TIMING_MAIN_END|TIMINGS_CHECK_MONSTER)
29+
e2:SetCondition(function(e,tp) return Duel.IsTurnPlayer(1-tp) and Duel.IsMainPhase() end)
30+
e2:SetTarget(s.synchtg)
31+
e2:SetOperation(s.synchop)
32+
c:RegisterEffect(e2)
33+
end
34+
function s.spfilter(c,e,tp)
35+
return c:IsLevelBelow(6) and c:IsRace(RACE_WARRIOR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
36+
end
37+
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
38+
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end
39+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
40+
and Duel.IsExistingTarget(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
41+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
42+
local g=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
43+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,tp,0)
44+
end
45+
function s.spop(e,tp,eg,ep,ev,re,r,rp)
46+
local c=e:GetHandler()
47+
local tc=Duel.GetFirstTarget()
48+
if tc:IsRelateToEffect(e) and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
49+
--Negate its effects
50+
tc:NegateEffects(c)
51+
end
52+
Duel.SpecialSummonComplete()
53+
if c:IsRelateToEffect(e) then
54+
--This card cannot be used as Synchro Material for the rest of this turn
55+
local e1=Effect.CreateEffect(c)
56+
e1:SetDescription(3310)
57+
e1:SetType(EFFECT_TYPE_SINGLE)
58+
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CLIENT_HINT)
59+
e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
60+
e1:SetValue(1)
61+
e1:SetReset(RESETS_STANDARD_PHASE_END)
62+
c:RegisterEffect(e1)
63+
end
64+
end
65+
function s.synchrocheck(tp,sg,sc)
66+
return sg:IsExists(Card.IsRace,1,nil,RACE_WARRIOR)
67+
end
68+
function s.synchtg(e,tp,eg,ep,ev,re,r,rp,chk)
69+
if chk==0 then
70+
Synchro.CheckAdditional=s.synchrocheck
71+
local res=Duel.IsExistingMatchingCard(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,1,nil)
72+
Synchro.CheckAdditional=nil
73+
return res
74+
end
75+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
76+
end
77+
function s.synchop(e,tp,eg,ep,ev,re,r,rp)
78+
Synchro.CheckAdditional=s.synchrocheck
79+
local g=Duel.GetMatchingGroup(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,nil)
80+
if #g>0 then
81+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
82+
local sc=g:Select(tp,1,1,nil):GetFirst()
83+
Duel.SynchroSummon(tp,sc)
84+
else
85+
Synchro.CheckAdditional=nil
86+
end
87+
end

pre-release/c100443001.lua

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
--恋する乙女
2+
--Maiden in Love
3+
--scripted by Naim
4+
local s,id=GetID()
5+
local COUNTER_MAIDEN=0x1090
6+
function s.initial_effect(c)
7+
--Monsters your opponent controls that can attack must attack this card
8+
local e1=Effect.CreateEffect(c)
9+
e1:SetType(EFFECT_TYPE_FIELD)
10+
e1:SetCode(EFFECT_MUST_ATTACK)
11+
e1:SetTargetRange(0,LOCATION_MZONE)
12+
e1:SetRange(LOCATION_MZONE)
13+
c:RegisterEffect(e1)
14+
local e2=e1:Clone()
15+
e2:SetCode(EFFECT_MUST_ATTACK_MONSTER)
16+
e2:SetValue(function(e,c) return c==e:GetHandler() end)
17+
c:RegisterEffect(e2)
18+
--Cannot be destroyed by battle
19+
local e3=Effect.CreateEffect(c)
20+
e3:SetType(EFFECT_TYPE_SINGLE)
21+
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
22+
e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
23+
e3:SetRange(LOCATION_MZONE)
24+
e3:SetValue(1)
25+
c:RegisterEffect(e3)
26+
--Activate 1 of these effects at the end of the Damage Step, if this card battled an opponent's monster
27+
local e4=Effect.CreateEffect(c)
28+
e4:SetDescription(aux.Stringid(id,0))
29+
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
30+
e4:SetCode(EVENT_DAMAGE_STEP_END)
31+
e4:SetCondition(s.effcon)
32+
e4:SetTarget(s.efftg)
33+
e4:SetOperation(s.effop)
34+
c:RegisterEffect(e4)
35+
end
36+
function s.effcon(e,tp,eg,ep,ev,re,r,rp)
37+
local c=e:GetHandler()
38+
return c:GetBattleTarget() and c:IsStatus(STATUS_OPPO_BATTLE)
39+
end
40+
function s.controlfilter(c)
41+
return c:HasCounter(COUNTER_MAIDEN) and c:IsControlerCanBeChanged()
42+
end
43+
function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
44+
local b1=Duel.IsExistingMatchingCard(Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,nil,COUNTER_MAIDEN,1)
45+
local b2=Duel.IsExistingMatchingCard(s.controlfilter,tp,0,LOCATION_MZONE,1,nil)
46+
local c=e:GetHandler()
47+
if chk==0 then return c:IsLocation(LOCATION_MZONE) and c:IsRelateToBattle() and (b1 or b2) end
48+
local op=Duel.SelectEffect(tp,
49+
{b1,aux.Stringid(id,1)},
50+
{b2,aux.Stringid(id,2)})
51+
e:SetLabel(op)
52+
if op==1 then
53+
e:SetCategory(CATEGORY_COUNTER)
54+
Duel.SetOperationInfo(0,CATEGORY_COUNTER,nil,1,tp,COUNTER_MAIDEN)
55+
elseif op==2 then
56+
e:SetCategory(CATEGORY_CONTROL)
57+
local g=Duel.GetMatchingGroup(s.controlfilter,tp,0,LOCATION_MZONE,nil)
58+
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,tp,0)
59+
end
60+
end
61+
function s.effop(e,tp,eg,ep,ev,re,r,rp)
62+
local op=e:GetLabel()
63+
if op==1 then
64+
--Place 1 Maiden Counter on 1 face-up monster your opponent controls.
65+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_COUNTER)
66+
local sc=Duel.SelectMatchingCard(tp,Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,1,nil,COUNTER_MAIDEN,1):GetFirst()
67+
if sc then
68+
sc:AddCounter(COUNTER_MAIDEN,1)
69+
end
70+
elseif op==2 then
71+
--Take control of 1 opponent's monster with a Maiden Counter.
72+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
73+
local sc=Duel.SelectMatchingCard(tp,s.controlfilter,tp,0,LOCATION_MZONE,1,1,nil):GetFirst()
74+
if sc then
75+
Duel.GetControl(sc,tp)
76+
end
77+
78+
end
79+
end

pre-release/c100443003.lua

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
--ユーカリ・モール
2+
--Eucalyptus Mole
3+
--scripted by pyrQ
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Special Summon 1 Level 4 or lower Beast monster from your Deck in face-down Defense Position
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_POSITION)
10+
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
11+
e1:SetProperty(EFFECT_FLAG_DELAY)
12+
e1:SetCode(EVENT_SUMMON_SUCCESS)
13+
e1:SetCountLimit(1,id)
14+
e1:SetTarget(s.fdsptg)
15+
e1:SetOperation(s.fdspop)
16+
c:RegisterEffect(e1)
17+
local e2=e1:Clone()
18+
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
19+
c:RegisterEffect(e2)
20+
--Special Summon 1 "Koala" monster from your Deck
21+
local e3=Effect.CreateEffect(c)
22+
e3:SetDescription(aux.Stringid(id,1))
23+
e3:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_ATKCHANGE)
24+
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
25+
e3:SetProperty(EFFECT_FLAG_DELAY)
26+
e3:SetCode(EVENT_DESTROYED)
27+
e3:SetCountLimit(1,{id,1})
28+
e3:SetTarget(s.koalasptg)
29+
e3:SetOperation(s.koalaspop)
30+
c:RegisterEffect(e3)
31+
end
32+
s.listed_series={SET_KOALA}
33+
function s.fdspfilter(c,e,tp)
34+
return c:IsLevelBelow(4) and c:IsRace(RACE_BEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)
35+
end
36+
function s.fdsptg(e,tp,eg,ep,ev,re,r,rp,chk)
37+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
38+
and Duel.IsExistingMatchingCard(s.fdspfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
39+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
40+
Duel.SetPossibleOperationInfo(0,CATEGORY_POSITION,e:GetHandler(),1,tp,POS_FACEUP_DEFENSE)
41+
end
42+
function s.fdspop(e,tp,eg,ep,ev,re,r,rp)
43+
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
44+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
45+
local g=Duel.SelectMatchingCard(tp,s.fdspfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
46+
if #g>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)>0 then
47+
Duel.ConfirmCards(1-tp,g)
48+
local c=e:GetHandler()
49+
if c:IsRelateToEffect(e) and c:IsAttackPos() then
50+
Duel.BreakEffect()
51+
Duel.ChangePosition(c,POS_FACEUP_DEFENSE)
52+
end
53+
end
54+
end
55+
function s.koalaspfilter(c,e,tp)
56+
return c:IsSetCard(SET_KOALA) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
57+
end
58+
function s.koalasptg(e,tp,eg,ep,ev,re,r,rp,chk)
59+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
60+
and Duel.IsExistingMatchingCard(s.koalaspfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
61+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
62+
end
63+
function s.koalaspop(e,tp,eg,ep,ev,re,r,rp)
64+
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
65+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
66+
local g=Duel.SelectMatchingCard(tp,s.koalaspfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
67+
if #g>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then
68+
local c=e:GetHandler()
69+
aux.RegisterClientHint(c,0,tp,1,0,aux.Stringid(id,2))
70+
--Non-Effect Beast monsters you control gain ATK equal to their own original DEF
71+
local e1=Effect.CreateEffect(c)
72+
e1:SetType(EFFECT_TYPE_FIELD)
73+
e1:SetCode(EFFECT_UPDATE_ATTACK)
74+
e1:SetTargetRange(LOCATION_MZONE,0)
75+
e1:SetTarget(function(e,c) return c:IsNonEffectMonster() and c:IsRace(RACE_BEAST) end)
76+
e1:SetValue(function(e,c) return c:GetBaseDefense() end)
77+
e1:SetReset(RESET_PHASE|PHASE_END,2)
78+
Duel.RegisterEffect(e1,tp)
79+
end
80+
end

0 commit comments

Comments
 (0)