Skip to content

Commit 1811595

Browse files
committed
added new rush cards
1 parent 2b2e7c9 commit 1811595

File tree

4 files changed

+175
-0
lines changed

4 files changed

+175
-0
lines changed

rush/c160321001.lua

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
--キメラテック・オーバー・ドラゴン
2+
--Chimeratech Overdragon
3+
local s,id=GetID()
4+
function s.initial_effect(c)
5+
c:EnableReviveLimit()
6+
--fusion material
7+
Fusion.AddProcMixRep(c,true,true,aux.FilterBoolFunctionEx(Card.IsRace,RACE_MACHINE),1,99,CARD_CYBER_DRAGON)
8+
--spsummon success
9+
local e1=Effect.CreateEffect(c)
10+
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
11+
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
12+
e1:SetOperation(s.sucop)
13+
c:RegisterEffect(e1)
14+
end
15+
s.material_setcode={0x93,0x1093}
16+
function s.sucop(e,tp,eg,ep,ev,re,r,rp)
17+
local c=e:GetHandler()
18+
local e1=Effect.CreateEffect(c)
19+
e1:SetType(EFFECT_TYPE_SINGLE)
20+
e1:SetCode(EFFECT_SET_BASE_ATTACK)
21+
e1:SetValue(c:GetMaterialCount()*800)
22+
e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE)
23+
c:RegisterEffect(e1)
24+
local e2=e1:Clone()
25+
e2:SetCode(EFFECT_SET_BASE_DEFENSE)
26+
c:RegisterEffect(e2)
27+
local e3=e1:Clone()
28+
e3:SetCode(EFFECT_EXTRA_ATTACK_MONSTER)
29+
e3:SetValue(c:GetMaterialCount()-1)
30+
c:RegisterEffect(e3)
31+
end

rush/c160321029.lua

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
--サイバー・ラッシュ・フュージョン
2+
--Cyber Rush Fusion
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
local e1=Fusion.CreateSummonEff(c,s.filter,s.mfilter,s.fextra,Fusion.ShuffleMaterial,nil,s.stage2,nil,nil,nil,nil,nil,nil,nil,nil,nil,5)
7+
e1:SetCondition(s.condition)
8+
c:RegisterEffect(e1)
9+
end
10+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
11+
return Duel.IsExistingMatchingCard(Card.IsMonster,tp,LOCATION_MZONE,0,1,nil)
12+
end
13+
function s.filter(c)
14+
return c:ListsCodeAsMaterial(CARD_CYBER_DRAGON)
15+
end
16+
function s.mfilter(c)
17+
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLocation(LOCATION_GRAVE|LOCATION_MZONE) and c:IsAbleToDeck()
18+
end
19+
function s.fextra(e,tp,mg)
20+
return Duel.GetMatchingGroup(s.mfilter,tp,LOCATION_GRAVE|LOCATION_MZONE,0,nil)
21+
end
22+
function s.stage2(e,tc,tp,mg,chk)
23+
if chk==0 then
24+
local sg=Duel.GetMatchingGroup(Card.IsNotMaximumModeSide,tp,LOCATION_MZONE,0,tc)
25+
if #sg>0 then
26+
Duel.Destroy(sg,REASON_EFFECT)
27+
end
28+
end
29+
end

rush/c160322001.lua

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
--ハーピィ三姉妹・TB
2+
--Harpie Lady Sisters Triangle Beauty
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,160208002,1,s.matfilter,2)
9+
Fusion.AddContactProc(c,s.contactfil,s.contactop,nil,nil,SUMMON_TYPE_FUSION,nil,false)
10+
--Name becomes "Harpie Ladies"
11+
local e1=Effect.CreateEffect(c)
12+
e1:SetType(EFFECT_TYPE_SINGLE)
13+
e1:SetCode(EFFECT_CHANGE_CODE)
14+
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
15+
e1:SetRange(LOCATION_GRAVE+LOCATION_MZONE)
16+
e1:SetValue(160208002)
17+
c:RegisterEffect(e1)
18+
--Cannot be destroyed
19+
local e2=Effect.CreateEffect(c)
20+
e2:SetType(EFFECT_TYPE_SINGLE)
21+
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
22+
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
23+
e2:SetRange(LOCATION_MZONE)
24+
e2:SetValue(s.indval)
25+
c:RegisterEffect(e2)
26+
--cannot be used as Fusion Material
27+
local e3=Effect.CreateEffect(c)
28+
e3:SetType(EFFECT_TYPE_FIELD)
29+
e3:SetCode(EFFECT_CANNOT_BE_FUSION_MATERIAL)
30+
e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
31+
e3:SetRange(LOCATION_MZONE)
32+
e3:SetTargetRange(LOCATION_MZONE,0)
33+
e3:SetTarget(s.indtg)
34+
e3:SetValue(s.sumlimit)
35+
c:RegisterEffect(e3)
36+
end
37+
s.named_material={160208002}
38+
function s.matfilter(c,scard,sumtype,tp)
39+
return c:IsAttribute(ATTRIBUTE_WIND,scard,sumtype,tp) and c:IsRace(RACE_WINGEDBEAST,scard,sumtype,tp)
40+
end
41+
function s.contactfil(tp)
42+
return Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsAbleToDeckOrExtraAsCost),tp,LOCATION_ONFIELD,0,nil)
43+
end
44+
function s.contactop(g,tp)
45+
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST+REASON_MATERIAL)
46+
end
47+
function s.indval(e,re,rp)
48+
return (re:IsTrapEffect() or re:IsSpellEffect()) and aux.indoval(e,re,rp)
49+
end
50+
function s.indtg(e,c)
51+
return c:IsLevel(12)
52+
end
53+
function s.sumlimit(e,c)
54+
if not c then return false end
55+
return c:IsControler(1-e:GetHandlerPlayer())
56+
end

rush/c160322035.lua

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
--ヒステリック・パーティー
2+
--Hysteric Party
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_SPECIAL_SUMMON)
10+
e1:SetType(EFFECT_TYPE_ACTIVATE)
11+
e1:SetCode(EVENT_DESTROYED)
12+
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
13+
e1:SetCondition(s.condition)
14+
e1:SetTarget(s.target)
15+
e1:SetOperation(s.activate)
16+
c:RegisterEffect(e1)
17+
local e2=e1:Clone()
18+
e2:SetCode(EVENT_DRAW)
19+
e2:SetCondition(s.condition2)
20+
c:RegisterEffect(e2)
21+
end
22+
function s.filter(c,tp)
23+
return c:GetReasonPlayer()==1-tp and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE)
24+
and c:IsReason(REASON_BATTLE) and Duel.GetAttacker():IsControler(1-tp)
25+
end
26+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
27+
return eg:IsExists(s.filter,1,nil,tp)
28+
end
29+
function s.condition2(e,tp,eg,ep,ev,re,r,rp)
30+
return ep==1-tp and Duel.IsTurnPlayer(1-tp)
31+
end
32+
function s.spfilter(c,e,tp)
33+
return (c:IsCode(CARD_HARPIE_LADY,160208002) or (c:IsRace(RACE_WINGEDBEAST) and c:IsAttribute(ATTRIBUTE_WIND) and c:IsType(TYPE_FUSION)))
34+
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)
35+
end
36+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
37+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,nil) end
38+
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND)
39+
Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
40+
end
41+
function s.activate(e,tp,eg,ep,ev,re,r,rp)
42+
--Effect
43+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
44+
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,1,nil)
45+
if Duel.SendtoGrave(g,REASON_EFFECT)==0 then return end
46+
--Special Summon
47+
local ft=Duel.GetMZoneCount(tp)
48+
if ft<=0 then return end
49+
if ft>=3 then ft=3 end
50+
if Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then ft=1 end
51+
local sg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_GRAVE,0,nil,e,tp)
52+
if #sg>0 and ft>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
53+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
54+
local ssg=sg:Select(tp,1,ft,nil)
55+
if #ssg>0 then
56+
Duel.SpecialSummon(ssg,0,tp,tp,false,false,POS_FACEUP)
57+
end
58+
end
59+
end

0 commit comments

Comments
 (0)