Skip to content

Commit 10fca40

Browse files
committed
added new rush cards
1 parent ac811c8 commit 10fca40

2 files changed

Lines changed: 121 additions & 0 deletions

File tree

rush/c160215040.lua

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
--セレブローズ・リッチ・マジシャンズ
2+
--Celeb Rose Rich Magicians
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Fusion Materials
7+
c:EnableReviveLimit()
8+
Fusion.AddProcMix(c,true,true,160013009,160013010)
9+
--Set
10+
local e1=Effect.CreateEffect(c)
11+
e1:SetDescription(aux.Stringid(id,0))
12+
e1:SetCategory(CATEGORY_LEAVE_GRAVE)
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={CARD_FUSION,160210022}
22+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
23+
return e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN)
24+
end
25+
function s.ssfilter(c)
26+
return (c:IsCode(CARD_FUSION,160210022) or c:IsEquipSpell()) and c:IsSpellTrap() and c:IsSSetable() and not c:IsType(TYPE_FIELD)
27+
end
28+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
29+
if chk==0 then return Duel.IsExistingMatchingCard(s.ssfilter,tp,LOCATION_GRAVE,0,1,nil) end
30+
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,tp,0)
31+
end
32+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
33+
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
34+
if ft>2 then ft=2 end
35+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
36+
local g=Duel.SelectMatchingCard(tp,s.ssfilter,tp,LOCATION_GRAVE,0,1,ft,nil)
37+
if #g==0 then return end
38+
if Duel.SSet(tp,g)>0 and Duel.IsExistingMatchingCard(Card.IsSpellTrap,tp,0,LOCATION_ONFIELD,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
39+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
40+
local g=Duel.SelectMatchingCard(tp,Card.IsSpellTrap,tp,0,LOCATION_ONFIELD,1,1,nil)
41+
Duel.HintSelection(g)
42+
Duel.BreakEffect()
43+
Duel.Destroy(g,REASON_EFFECT)
44+
end
45+
--Cannot activate
46+
local e1=Effect.CreateEffect(e:GetHandler())
47+
e1:SetDescription(aux.Stringid(id,1))
48+
e1:SetType(EFFECT_TYPE_FIELD)
49+
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
50+
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CLIENT_HINT)
51+
e1:SetTargetRange(1,0)
52+
e1:SetValue(s.aclimit)
53+
e1:SetReset(RESET_PHASE|PHASE_END)
54+
Duel.RegisterEffect(e1,tp)
55+
end
56+
function s.aclimit(e,re,tp)
57+
local c=re:GetHandler()
58+
return c:IsType(TYPE_FUSION) and c:IsLevel(7)
59+
end

rush/c160215066.lua

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
--湾楽姫コルネットラス
2+
--Cornetlass the Music Princess
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Excavate the top 5 cards
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
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+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
19+
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN)
20+
end
21+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
22+
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=5 end
23+
Duel.SetPossibleOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
24+
end
25+
function s.filter(c)
26+
return ((c:IsMonster() and c:IsRace(RACE_WARRIOR) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsType(TYPE_NORMAL)) or c:IsCode(CARD_FUSION)) and c:IsAbleToHand()
27+
end
28+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
29+
--Effect
30+
local c=e:GetHandler()
31+
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<5 then return end
32+
Duel.ConfirmDecktop(tp,5)
33+
local g=Duel.GetDecktopGroup(tp,5)
34+
Duel.DisableShuffleCheck()
35+
if g:IsExists(s.filter,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
36+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
37+
local tg=g:FilterSelect(tp,s.filter,1,1,nil)
38+
if #tg>0 then
39+
Duel.SendtoHand(tg,nil,REASON_EFFECT)
40+
Duel.ConfirmCards(1-tp,tg)
41+
Duel.ShuffleHand(tp)
42+
g:RemoveCard(tg)
43+
end
44+
end
45+
local ct=#g
46+
if ct>0 then
47+
Duel.MoveToDeckBottom(ct,tp)
48+
Duel.SortDeckbottom(tp,tp,ct)
49+
end
50+
--Prevent non-WIND Warriors from attacking
51+
local e1=Effect.CreateEffect(e:GetHandler())
52+
e1:SetType(EFFECT_TYPE_FIELD)
53+
e1:SetCode(EFFECT_CANNOT_ATTACK)
54+
e1:SetProperty(EFFECT_FLAG_OATH)
55+
e1:SetTargetRange(LOCATION_MZONE,0)
56+
e1:SetTarget(s.ftarget)
57+
e1:SetReset(RESET_PHASE|PHASE_END)
58+
Duel.RegisterEffect(e1,tp)
59+
end
60+
function s.ftarget(e,c)
61+
return not c:IsRace(RACE_WARRIOR) or not c:IsAttribute(ATTRIBUTE_WIND)
62+
end

0 commit comments

Comments
 (0)