Skip to content

Commit c8edb73

Browse files
committed
added new rush cards
1 parent 387a2e9 commit c8edb73

File tree

3 files changed

+143
-0
lines changed

3 files changed

+143
-0
lines changed

rush/c160214034.lua

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
--CAN-Eb:D
2+
--CAN - Eb:D
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--name change
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetType(EFFECT_TYPE_IGNITION)
10+
e1:SetRange(LOCATION_MZONE)
11+
e1:SetCountLimit(1)
12+
e1:SetCost(s.cost)
13+
e1:SetTarget(s.target)
14+
e1:SetOperation(s.operation)
15+
c:RegisterEffect(e1)
16+
end
17+
s.listed_names={CARD_CAN_D,CARD_FUSION}
18+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
19+
if chk==0 then return Duel.CheckLPCost(tp,1000) end
20+
end
21+
function s.filter(c,code)
22+
return c:IsMonster() and c:IsRace(RACE_PSYCHIC) and not c:IsCode(code)
23+
end
24+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
25+
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil,e:GetHandler():GetCode()) end
26+
end
27+
function s.thfilter(c)
28+
return c:IsCode(CARD_CAN_D,CARD_FUSION) and c:IsAbleToHand()
29+
end
30+
function s.chkfilter(c)
31+
return c:IsFaceup() and c:IsType(TYPE_FUSION)
32+
end
33+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
34+
local c=e:GetHandler()
35+
--Requirement
36+
Duel.PayLPCost(tp,1000)
37+
--Effect
38+
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE,0,1,1,nil,c:GetCode())
39+
if #g>0 then
40+
Duel.HintSelection(g)
41+
local e1=Effect.CreateEffect(c)
42+
e1:SetType(EFFECT_TYPE_SINGLE)
43+
e1:SetCode(EFFECT_CHANGE_CODE)
44+
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
45+
e1:SetReset(RESETS_STANDARD_PHASE_END)
46+
e1:SetValue(g:GetFirst():GetCode())
47+
c:RegisterEffect(e1)
48+
if Duel.GetMatchingGroupCount(s.chkfilter,tp,LOCATION_MZONE,0,nil)==0 and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.thfilter),tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
49+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
50+
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
51+
if #g>0 then
52+
Duel.SendtoHand(g,nil,REASON_EFFECT)
53+
Duel.ConfirmCards(1-tp,g)
54+
end
55+
end
56+
end
57+
end

rush/c160321028.lua

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
--サイバー・ヴァリエーション
2+
--Cyber Variation
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
-- Draw
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_DRAW)
10+
e1:SetType(EFFECT_TYPE_ACTIVATE)
11+
e1:SetCode(EVENT_FREE_CHAIN)
12+
e1:SetCondition(s.condition)
13+
e1:SetCost(s.cost)
14+
e1:SetTarget(s.target)
15+
e1:SetOperation(s.operation)
16+
c:RegisterEffect(e1)
17+
end
18+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
19+
return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=10
20+
end
21+
function s.cfilter(c)
22+
return c:IsFaceup() and c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsAbleToDeckOrExtraAsCost()
23+
end
24+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
25+
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end
26+
end
27+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
28+
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
29+
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
30+
end
31+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
32+
--Requirement
33+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
34+
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE,0,1,1,nil)
35+
if Duel.SendtoDeck(g,nil,SEQ_DECKBOTTOM,REASON_COST)<1 then return end
36+
--Effect
37+
Duel.Draw(tp,2,REASON_EFFECT)
38+
local e1=Effect.CreateEffect(e:GetHandler())
39+
e1:SetType(EFFECT_TYPE_FIELD)
40+
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
41+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
42+
e1:SetTargetRange(1,0)
43+
e1:SetTarget(s.sumlimit)
44+
e1:SetReset(RESET_PHASE|PHASE_END)
45+
Duel.RegisterEffect(e1,tp)
46+
end
47+
function s.sumlimit(e,c)
48+
return not c:IsRace(RACE_MACHINE)
49+
end

rush/c160322006.lua

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
--ハーピィ・シニョーラ
2+
--Harpie Signora
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Send the top 2 cards of your Deck to the GY
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_DECKDES)
10+
e1:SetType(EFFECT_TYPE_IGNITION)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetCountLimit(1)
13+
e1:SetCondition(s.condition)
14+
e1:SetTarget(s.target)
15+
e1:SetOperation(s.operation)
16+
c:RegisterEffect(e1)
17+
end
18+
s.listed_names={CARD_HARPIE_LADY,160208002}
19+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
20+
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN) and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=10
21+
end
22+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
23+
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,2) end
24+
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,2)
25+
end
26+
function s.cfilter(c)
27+
return c:IsLocation(LOCATION_GRAVE) and c:IsCode(CARD_HARPIE_LADY,160208002)
28+
end
29+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
30+
--Effect
31+
if Duel.DiscardDeck(tp,2,REASON_EFFECT)~=2 then return end
32+
local ct=Duel.GetOperatedGroup():FilterCount(s.cfilter,nil)
33+
if ct>0 and Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
34+
Duel.BreakEffect()
35+
Duel.Draw(tp,1,REASON_EFFECT)
36+
end
37+
end

0 commit comments

Comments
 (0)