Skip to content

Commit 096fc9c

Browse files
committed
added new rush cards
1 parent 8917076 commit 096fc9c

13 files changed

+520
-0
lines changed

rush/c160215001.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--ゼラ
2+
--Zera the Mant
3+
local s,id=GetID()
4+
function s.initial_effect(c)
5+
c:EnableReviveLimit()
6+
end

rush/c160215002.lua

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
--邪悪なる魔族ゼラ
2+
--Zera the Wicked
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Ritual
7+
c:EnableReviveLimit()
8+
--Special Summon
9+
local e1=Effect.CreateEffect(c)
10+
e1:SetDescription(aux.Stringid(id,0))
11+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
12+
e1:SetType(EFFECT_TYPE_IGNITION)
13+
e1:SetRange(LOCATION_MZONE)
14+
e1:SetCountLimit(1)
15+
e1:SetCondition(s.condition)
16+
e1:SetTarget(s.target)
17+
e1:SetOperation(s.operation)
18+
c:RegisterEffect(e1)
19+
end
20+
function s.cfilter(c)
21+
return c:IsMonster() and c:IsType(TYPE_NORMAL) and c:IsAttack(1600)
22+
end
23+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
24+
local c=e:GetHandler()
25+
return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_RITUAL)
26+
and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,1,nil)
27+
end
28+
function s.spfilter(c,e,tp)
29+
return c:IsRace(RACE_FIEND) and not c:IsType(TYPE_EFFECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
30+
end
31+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
32+
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
33+
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
34+
end
35+
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_GRAVE)
36+
end
37+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
38+
if Duel.GetLocationCount(tp,LOCATION_MZONE)<1 then return end
39+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
40+
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
41+
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
42+
end

rush/c160215005.lua

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
--ゼラの放浪者
2+
--Wanderer of Zera
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Summon with 1 tribute
7+
local e0=aux.AddNormalSummonProcedure(c,true,true,1,1,SUMMON_TYPE_TRIBUTE,aux.Stringid(id,0),s.cfilter)
8+
--Set 1 card
9+
local e1=Effect.CreateEffect(c)
10+
e1:SetDescription(aux.Stringid(id,0))
11+
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
12+
e1:SetType(EFFECT_TYPE_IGNITION)
13+
e1:SetRange(LOCATION_MZONE)
14+
e1:SetCountLimit(1)
15+
e1:SetTarget(s.target)
16+
e1:SetOperation(s.operation)
17+
c:RegisterEffect(e1)
18+
end
19+
s.listed_names={81756897}
20+
function s.cfilter(c)
21+
return c:IsType(TYPE_NORMAL) and c:GetBaseAttack()==1600
22+
end
23+
function s.setfilter(c)
24+
return c:IsCode(81756897) and c:IsSSetable()
25+
end
26+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
27+
if chk==0 then return Duel.IsExistingMatchingCard(s.setfilter,tp,LOCATION_GRAVE,0,1,nil) end
28+
end
29+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
30+
--Effect
31+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
32+
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.setfilter),tp,LOCATION_GRAVE,0,1,1,nil)
33+
if #g==0 then return end
34+
Duel.SSet(tp,g)
35+
end

rush/c160215008.lua

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

rush/c160215009.lua

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
--ゼラの降臨
2+
--Zera Advent
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--name change
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(81756897)
13+
c:RegisterEffect(e0)
14+
local e1=Ritual.CreateProc({handler=c,lvtype=RITPROC_GREATER,filter=s.ritualfil,matfilter=s.forcedgroup})
15+
c:RegisterEffect(e1)
16+
end
17+
s.listed_names={69123138,160215002}
18+
function s.ritualfil(c)
19+
return c:IsCode(69123138,160215002)
20+
end
21+
function s.forcedgroup(c,e,tp)
22+
return c:IsLocation(LOCATION_MZONE) and c:IsFaceup()
23+
end

rush/c160215012.lua

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
--デビルズクロー
2+
--Jagged Claw Attack
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Activate
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_DESTROY)
10+
e1:SetType(EFFECT_TYPE_ACTIVATE)
11+
e1:SetCode(EVENT_FREE_CHAIN)
12+
e1:SetCondition(s.condition)
13+
e1:SetTarget(s.target)
14+
e1:SetOperation(s.activate)
15+
c:RegisterEffect(e1)
16+
end
17+
s.listed_names={69123138}
18+
function s.cfilter(c)
19+
return c:IsFaceup() and c:IsCode(69123138)
20+
end
21+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
22+
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
23+
end
24+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
25+
if chk==0 then return Duel.GetMatchingGroupCount(Card.IsNotMaximumModeSide,tp,0,LOCATION_ONFIELD,nil)>0 end
26+
end
27+
function s.activate(e,tp,eg,ep,ev,re,r,rp)
28+
--Effect
29+
local dg=Duel.GetMatchingGroup(Card.IsNotMaximumModeSide,tp,0,LOCATION_ONFIELD,nil)
30+
if #dg>0 then
31+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
32+
local sg=dg:Select(tp,1,1,nil)
33+
local sg2=sg:AddMaximumCheck()
34+
Duel.HintSelection(sg2)
35+
Duel.Destroy(sg,REASON_EFFECT)
36+
end
37+
end

rush/c160215013.lua

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
--ゼラの魔炎弾
2+
--Wicked Fire Blast of Zera
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Activate
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetCategory(CATEGORY_DESTROY)
9+
e1:SetType(EFFECT_TYPE_ACTIVATE)
10+
e1:SetCode(EVENT_SUMMON_SUCCESS)
11+
e1:SetCondition(s.condition)
12+
e1:SetTarget(s.target)
13+
e1:SetOperation(s.activate)
14+
c:RegisterEffect(e1)
15+
local e2=e1:Clone()
16+
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
17+
c:RegisterEffect(e2)
18+
end
19+
s.listed_names={69123138}
20+
function s.cfilter(c)
21+
return c:IsFaceup() and c:IsCode(69123138)
22+
end
23+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
24+
if #eg~=1 then return false end
25+
local tc=eg:GetFirst()
26+
return tc:IsFaceup() and tc:IsSummonPlayer(1-tp) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
27+
end
28+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
29+
local g=Duel.GetMatchingGroup(Card.IsNotMaximumModeSide,tp,0,LOCATION_ONFIELD,nil)
30+
if chk==0 then return #g>0 end
31+
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,tp,0)
32+
end
33+
function s.activate(e,tp,eg,ep,ev,re,r,rp)
34+
--Effect
35+
local g=Duel.GetMatchingGroup(Card.IsNotMaximumModeSide,tp,0,LOCATION_ONFIELD,nil)
36+
if #g==0 then return end
37+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
38+
local dg=g:Select(tp,1,1,nil)
39+
local dg2=dg:AddMaximumCheck()
40+
Duel.HintSelection(dg2)
41+
if Duel.Destroy(dg,REASON_EFFECT)>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
42+
Duel.BreakEffect()
43+
Duel.Damage(1-tp,1000,REASON_EFFECT)
44+
end
45+
end

rush/c160215014.lua

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
--なほいとをかしまいひめ
2+
--Ever-Grace Princess Mai
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Ritual
7+
c:EnableReviveLimit()
8+
--This card cannot be destroyed by card effects
9+
local e1=Effect.CreateEffect(c)
10+
e1:SetDescription(aux.Stringid(id,0))
11+
e1:SetCategory(CATEGORY_DESTROY)
12+
e1:SetType(EFFECT_TYPE_IGNITION)
13+
e1:SetRange(LOCATION_MZONE)
14+
e1:SetCountLimit(1)
15+
e1:SetCondition(function(e) return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN) end)
16+
e1:SetCost(s.cost)
17+
e1:SetTarget(s.target)
18+
e1:SetOperation(s.operation)
19+
c:RegisterEffect(e1)
20+
end
21+
s.listed_names={160004013}
22+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
23+
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,1) end
24+
end
25+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
26+
if chk==0 then return true end
27+
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_ONFIELD,nil)
28+
Duel.SetPossibleOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
29+
end
30+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
31+
local c=e:GetHandler()
32+
--Requirement
33+
if Duel.DiscardDeck(tp,1,REASON_COST)<1 then return end
34+
--Effect
35+
local e1=Effect.CreateEffect(c)
36+
e1:SetType(EFFECT_TYPE_SINGLE)
37+
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
38+
e1:SetDescription(3001)
39+
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE|EFFECT_FLAG_CANNOT_DISABLE|EFFECT_FLAG_CLIENT_HINT)
40+
e1:SetRange(LOCATION_MZONE)
41+
e1:SetReset(RESETS_STANDARD_PHASE_END,2)
42+
e1:SetValue(1)
43+
c:RegisterEffect(e1)
44+
local sg=Duel.GetMatchingGroup(aux.FilterMaximumSideFunctionEx(Card.IsMonster),tp,0,LOCATION_MZONE,nil)
45+
if Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,160004013) and #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
46+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
47+
local tg=Duel.SelectMatchingCard(tp,aux.FilterMaximumSideFunctionEx(Card.IsMonster),tp,0,LOCATION_MZONE,1,1,nil)
48+
local tg2=tg:AddMaximumCheck()
49+
Duel.HintSelection(tg2)
50+
if Duel.Destroy(tg,REASON_EFFECT)>0 then
51+
--Cannot attack directly
52+
local e2=Effect.CreateEffect(c)
53+
e2:SetDescription(3207)
54+
e2:SetType(EFFECT_TYPE_SINGLE)
55+
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CLIENT_HINT)
56+
e2:SetCode(EFFECT_CANNOT_DIRECT_ATTACK)
57+
e2:SetReset(RESETS_STANDARD_PHASE_END)
58+
c:RegisterEffect(e2)
59+
end
60+
end
61+
end

rush/c160215015.lua

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
--なほいとをかしまりひめ
2+
--Ever-Grace Princess Mari
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Ritual
7+
c:EnableReviveLimit()
8+
--Gain 700 ATK
9+
local e1=Effect.CreateEffect(c)
10+
e1:SetDescription(aux.Stringid(id,0))
11+
e1:SetCategory(CATEGORY_ATKCHANGE)
12+
e1:SetType(EFFECT_TYPE_IGNITION)
13+
e1:SetRange(LOCATION_MZONE)
14+
e1:SetCountLimit(1)
15+
e1:SetCondition(function(e) return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN) end)
16+
e1:SetCost(s.cost)
17+
e1:SetOperation(s.operation)
18+
c:RegisterEffect(e1)
19+
end
20+
s.listed_names={160004013}
21+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,1) end
23+
end
24+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
25+
local c=e:GetHandler()
26+
--Requirement
27+
if Duel.DiscardDeck(tp,1,REASON_COST)<1 then return end
28+
--Effect
29+
local c=e:GetHandler()
30+
--Increase ATK
31+
local e1=Effect.CreateEffect(c)
32+
e1:SetType(EFFECT_TYPE_SINGLE)
33+
e1:SetCode(EFFECT_UPDATE_ATTACK)
34+
e1:SetValue(700)
35+
e1:SetReset(RESETS_STANDARD_PHASE_END)
36+
c:RegisterEffect(e1)
37+
if Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,160004013) then
38+
--Can make up to 2 attacks on monsters
39+
local e2=Effect.CreateEffect(c)
40+
e2:SetType(EFFECT_TYPE_SINGLE)
41+
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
42+
e2:SetRange(LOCATION_MZONE)
43+
e2:SetCode(EFFECT_EXTRA_ATTACK_MONSTER)
44+
e2:SetValue(1)
45+
e2:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE|RESET_PHASE|PHASE_END)
46+
c:RegisterEffect(e2)
47+
end
48+
end

0 commit comments

Comments
 (0)