Skip to content

Commit b7d32fe

Browse files
committed
added new rush cards
1 parent 0b64397 commit b7d32fe

18 files changed

Lines changed: 879 additions & 0 deletions

rush/c160216001.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--カオスの儀式
2+
--Black Luster Soldier
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
c:EnableReviveLimit()
7+
end

rush/c160216007.lua

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
--大魔法羊女メェ~グちゃんMAXウール[L]
2+
--Super Princess of the Flock - Max Mutton [L]
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Name becomes "Princess of the Flock - Miss Mutton" in the Graveyard
7+
local e0=Effect.CreateEffect(c)
8+
e0:SetType(EFFECT_TYPE_SINGLE)
9+
e0:SetCode(EFFECT_CHANGE_CODE)
10+
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
11+
e0:SetRange(LOCATION_GRAVE)
12+
e0:SetValue(160009006)
13+
c:RegisterEffect(e0)
14+
--Gain piercing
15+
local e1=Effect.CreateEffect(c)
16+
e1:SetDescription(aux.Stringid(id,0))
17+
e1:SetCategory(CATEGORY_ATKCHANGE)
18+
e1:SetType(EFFECT_TYPE_IGNITION)
19+
e1:SetRange(LOCATION_MZONE)
20+
e1:SetCountLimit(1)
21+
e1:SetCost(s.cost)
22+
e1:SetOperation(s.operation)
23+
c:RegisterEffect(e1)
24+
c:AddSideMaximumHandler(e1)
25+
end
26+
s.MaximumSide="Left"
27+
function s.filter(c)
28+
return c:IsMonster() and c:IsAbleToDeckOrExtraAsCost()
29+
end
30+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
31+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,2,nil) end
32+
end
33+
function s.checkfilter(c)
34+
return c:IsLocation(LOCATION_DECK) and c:IsCode(160402024)
35+
end
36+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
37+
local c=e:GetHandler()
38+
--Requirement
39+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
40+
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,2,2,nil)
41+
if Duel.SendtoGrave(g,REASON_COST)<2 then return end
42+
--Effect
43+
c:AddPiercing(RESETS_STANDARD_PHASE_END)
44+
if c:IsMaximumMode() then
45+
--Gain 1000 ATK
46+
local e1=Effect.CreateEffect(c)
47+
e1:SetType(EFFECT_TYPE_SINGLE)
48+
e1:SetCode(EFFECT_UPDATE_ATTACK)
49+
e1:SetValue(1000)
50+
e1:SetReset(RESETS_STANDARD_PHASE_END)
51+
c:RegisterEffect(e1)
52+
--Cannot be destroyed by your opponent's card effects
53+
local e2=Effect.CreateEffect(c)
54+
e2:SetDescription(3001)
55+
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CLIENT_HINT)
56+
e2:SetType(EFFECT_TYPE_SINGLE)
57+
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
58+
e2:SetValue(1)
59+
e2:SetReset(RESETS_STANDARD_PHASE_END)
60+
c:RegisterEffect(e2)
61+
end
62+
end

rush/c160216008.lua

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
--大魔法羊女メェ~グちゃんMAXウール
2+
--Super Princess of the Flock - Max Mutton
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Maximum Procedure
7+
Maximum.AddProcedure(c,nil,s.filter1,s.filter2)
8+
c:AddMaximumAtkHandler()
9+
--Name becomes "Princess of the Flock - Miss Mutton" in the Graveyard
10+
local e0=Effect.CreateEffect(c)
11+
e0:SetType(EFFECT_TYPE_SINGLE)
12+
e0:SetCode(EFFECT_CHANGE_CODE)
13+
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
14+
e0:SetRange(LOCATION_GRAVE)
15+
e0:SetValue(160009006)
16+
c:RegisterEffect(e0)
17+
--Destroy 1 card your opponent controls
18+
local e1=Effect.CreateEffect(c)
19+
e1:SetDescription(aux.Stringid(id,0))
20+
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_ATKCHANGE)
21+
e1:SetType(EFFECT_TYPE_IGNITION)
22+
e1:SetRange(LOCATION_MZONE)
23+
e1:SetCountLimit(1)
24+
e1:SetCost(s.cost)
25+
e1:SetTarget(s.target)
26+
e1:SetOperation(s.operation)
27+
c:RegisterEffect(e1)
28+
end
29+
s.MaximumAttack=4000
30+
s.listed_names={160216007,160216009,160009006,160009044,160010046}
31+
function s.filter1(c)
32+
return c:IsCode(160216007)
33+
end
34+
function s.filter2(c)
35+
return c:IsCode(160216009)
36+
end
37+
function s.costfilter(c)
38+
return c:IsCode(160009044,160010046) and c:IsAbleToGraveAsCost()
39+
end
40+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
41+
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil) end
42+
end
43+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
44+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsNotMaximumModeSide,tp,0,LOCATION_ONFIELD,1,nil) end
45+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,1-tp,LOCATION_ONFIELD)
46+
end
47+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
48+
--Requirement
49+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
50+
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_HAND,0,1,1,nil)
51+
if Duel.SendtoGrave(g,REASON_COST)<1 then return end
52+
--Effect
53+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
54+
local dg=Duel.SelectMatchingCard(tp,Card.IsNotMaximumModeSide,tp,0,LOCATION_ONFIELD,1,1,nil)
55+
local dg2=dg:AddMaximumCheck()
56+
Duel.HintSelection(dg2)
57+
Duel.Destroy(dg,REASON_EFFECT)
58+
end

rush/c160216009.lua

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
--大魔法羊女メェ~グちゃんMAXウール[R]
2+
--Super Princess of the Flock - Max Mutton [R]
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Name becomes "Princess of the Flock - Miss Mutton" in the Graveyard
7+
local e0=Effect.CreateEffect(c)
8+
e0:SetType(EFFECT_TYPE_SINGLE)
9+
e0:SetCode(EFFECT_CHANGE_CODE)
10+
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
11+
e0:SetRange(LOCATION_GRAVE)
12+
e0:SetValue(160009006)
13+
c:RegisterEffect(e0)
14+
--Add to the hand
15+
local e1=Effect.CreateEffect(c)
16+
e1:SetDescription(aux.Stringid(id,0))
17+
e1:SetCategory(CATEGORY_TOHAND)
18+
e1:SetType(EFFECT_TYPE_IGNITION)
19+
e1:SetRange(LOCATION_MZONE)
20+
e1:SetCountLimit(1)
21+
e1:SetTarget(s.target)
22+
e1:SetOperation(s.operation)
23+
c:RegisterEffect(e1)
24+
c:AddSideMaximumHandler(e1)
25+
end
26+
s.MaximumSide="Right"
27+
s.listed_names={160009044,160010046}
28+
function s.thfilter(c)
29+
return ((c:IsMonster() and c:IsRace(RACE_BEAST) and c:IsType(TYPE_NORMAL)) or c:IsCode(160009044,160010046)) and c:IsAbleToHand()
30+
end
31+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
32+
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
33+
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
34+
end
35+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
36+
local c=e:GetHandler()
37+
local ct=1
38+
if c:IsMaximumMode() then ct=3 end
39+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
40+
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,ct,nil)
41+
if #g>0 then
42+
Duel.SendtoHand(g,nil,REASON_EFFECT)
43+
Duel.ConfirmCards(1-tp,g)
44+
end
45+
end

rush/c160216038.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--カオスの儀式
2+
--Black Luster Ritual
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
local e1=Ritual.CreateProc({handler=c,lvtype=RITPROC_GREATER,filter=s.ritualfil})
7+
c:RegisterEffect(e1)
8+
end
9+
s.listed_names={5405694}
10+
function s.ritualfil(c)
11+
return c:IsCode(5405694)
12+
end

rush/c160216043.lua

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
--天地諧謔のコスモス姫
2+
--Princess Cosmos the Cosmic Trickster
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Fusion Materials
7+
c:EnableReviveLimit()
8+
Fusion.AddProcMixRep(c,true,true,s.matfilter,2,99,160216046)
9+
--Destroy 1 card your opponent controls
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetDescription(aux.Stringid(id,1))
12+
e1:SetCategory(CATEGORY_DESTROY)
13+
e1:SetType(EFFECT_TYPE_IGNITION)
14+
e1:SetRange(LOCATION_MZONE)
15+
e1:SetCountLimit(1)
16+
e1:SetCondition(s.condition)
17+
e1:SetTarget(s.target)
18+
e1:SetOperation(s.operation)
19+
c:RegisterEffect(e1)
20+
--Material Check
21+
local e2=Effect.CreateEffect(c)
22+
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
23+
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
24+
e2:SetCondition(s.sumcond)
25+
e2:SetOperation(s.sumop)
26+
c:RegisterEffect(e2)
27+
end
28+
s.named_material={160216046}
29+
function s.matfilter(c,fc,sumtype,tp)
30+
return c:IsRace(RACE_GALAXY,fc,sumtype,tp) and c:IsAttack(900)
31+
end
32+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
33+
local c=e:GetHandler()
34+
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SPSUMMON_TURN)
35+
end
36+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
37+
local c=e:GetHandler()
38+
if chk==0 then
39+
if c:GetFlagEffect(id)>0 then
40+
return Duel.IsExistingMatchingCard(Card.IsNotMaximumModeSide,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
41+
end
42+
return Duel.IsExistingMatchingCard(Card.IsNotMaximumModeSide,tp,0,LOCATION_ONFIELD,1,nil)
43+
end
44+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,1-tp,LOCATION_ONFIELD)
45+
end
46+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
47+
local c=e:GetHandler()
48+
--Effect
49+
if c:GetFlagEffect(id)>0 then
50+
local g=Duel.GetMatchingGroup(Card.IsNotMaximumModeSide,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c)
51+
g=g:AddMaximumCheck()
52+
Duel.Destroy(g,REASON_EFFECT)
53+
else
54+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
55+
local dg=Duel.SelectMatchingCard(tp,Card.IsNotMaximumModeSide,tp,0,LOCATION_ONFIELD,1,1,nil)
56+
local dg2=dg:AddMaximumCheck()
57+
Duel.HintSelection(dg2)
58+
Duel.Destroy(dg,REASON_EFFECT)
59+
end
60+
end
61+
function s.sumcond(e,tp,eg,ep,ev,re,r,rp)
62+
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
63+
end
64+
function s.sumop(e,tp,eg,ep,ev,re,r,rp)
65+
local c=e:GetHandler()
66+
local g=c:GetMaterial()
67+
if #g>=9 then
68+
c:RegisterFlagEffect(id,RESET_EVENT|(RESETS_STANDARD&~RESET_TOFIELD),EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,1))
69+
end
70+
end

rush/c160216044.lua

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
--黒極精のコスモスター
2+
--Cosmostar the Black Hole Polairy
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--fusion material
7+
c:EnableReviveLimit()
8+
Fusion.AddProcMixN(c,true,true,s.matfilter,2)
9+
--Piercing battle damage
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetType(EFFECT_TYPE_SINGLE)
12+
e1:SetCode(EFFECT_PIERCE)
13+
c:RegisterEffect(e1)
14+
--Monsters on your opponent's field lose 1000 ATK/DEF
15+
local e2=Effect.CreateEffect(c)
16+
e2:SetType(EFFECT_TYPE_FIELD)
17+
e2:SetCode(EFFECT_UPDATE_ATTACK)
18+
e2:SetRange(LOCATION_MZONE)
19+
e2:SetTargetRange(0,LOCATION_MZONE)
20+
e2:SetCondition(s.condition)
21+
e2:SetTarget(aux.TargetBoolFunction(Card.IsFaceup))
22+
e2:SetValue(-1000)
23+
c:RegisterEffect(e2)
24+
local e3=e2:Clone()
25+
e3:SetCode(EFFECT_UPDATE_DEFENSE)
26+
c:RegisterEffect(e3)
27+
end
28+
function s.matfilter(c,fc,sumtype,tp)
29+
return c:IsRace(RACE_GALAXY,fc,sumtype,tp) and c:IsAttack(900)
30+
end
31+
function s.condition(e)
32+
return Duel.GetTurnPlayer()==e:GetHandler():GetControler()
33+
end

rush/c160216045.lua

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
--夕極精のコスモスター
2+
--Cosmostar the White Hole Polairy
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--fusion material
7+
c:EnableReviveLimit()
8+
Fusion.AddProcMixN(c,true,true,s.matfilter,3)
9+
--Special Summon
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetDescription(aux.Stringid(id,1))
12+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
13+
e1:SetType(EFFECT_TYPE_IGNITION)
14+
e1:SetRange(LOCATION_MZONE)
15+
e1:SetCountLimit(1)
16+
e1:SetCondition(s.condition)
17+
e1:SetTarget(s.target)
18+
e1:SetOperation(s.operation)
19+
c:RegisterEffect(e1)
20+
end
21+
s.listed_names={160017058}
22+
function s.matfilter(c,fc,sumtype,tp)
23+
return c:IsRace(RACE_GALAXY,fc,sumtype,tp) and c:IsAttack(900)
24+
end
25+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
26+
local c=e:GetHandler()
27+
return c:IsSummonPhaseMain() and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_FUSION)
28+
end
29+
function s.filter(c,e,tp)
30+
return c:IsRace(RACE_GALAXY) and c:IsType(TYPE_FUSION) and c:IsDefense(1900,2600) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
31+
end
32+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
33+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
34+
and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
35+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
36+
end
37+
function s.thfilter(c)
38+
return c:IsCode(160017058) and c:IsAbleToHand()
39+
end
40+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
41+
local c=e:GetHandler()
42+
--Effect
43+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
44+
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
45+
if #g>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then
46+
if Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.thfilter),tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
47+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
48+
local g2=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.thfilter),tp,LOCATION_GRAVE,0,1,1,nil)
49+
if #g2>0 then
50+
Duel.BreakEffect()
51+
Duel.SendtoHand(g2,nil,REASON_EFFECT)
52+
Duel.ConfirmCards(1-tp,g2)
53+
end
54+
end
55+
end
56+
--Cannot activate the effect of "Cosmostar the White Hole Polairy"
57+
local e1=Effect.CreateEffect(c)
58+
e1:SetDescription(aux.Stringid(id,1))
59+
e1:SetType(EFFECT_TYPE_FIELD)
60+
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
61+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
62+
e1:SetTargetRange(1,0)
63+
e1:SetValue(s.aclimit)
64+
e1:SetReset(RESET_PHASE|PHASE_END)
65+
Duel.RegisterEffect(e1,tp)
66+
end
67+
function s.aclimit(e,re,tp)
68+
return re:GetHandler():IsCode(id)
69+
end

0 commit comments

Comments
 (0)