Skip to content

Commit a293824

Browse files
committed
added Harpie Cara Charming Dress
1 parent 6ad24a2 commit a293824

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

rush/c160322005.lua

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
--ハーピィ・カーラ・CD
2+
--Harpie Cara Charming Dress
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Fusion Procedure
7+
c:EnableReviveLimit()
8+
Fusion.AddProcMixN(c,true,true,160208009,1,s.ffilter,1)
9+
Fusion.AddContactProc(c,s.contactfil,s.contactop,nil,nil,SUMMON_TYPE_FUSION,nil,false)
10+
--Send the top 3 cards of your Deck to the GY
11+
local e1=Effect.CreateEffect(c)
12+
e1:SetCategory(CATEGORY_DECKDES+CATEGORY_RECOVER)
13+
e1:SetDescription(aux.Stringid(id,0))
14+
e1:SetType(EFFECT_TYPE_IGNITION)
15+
e1:SetRange(LOCATION_MZONE)
16+
e1:SetCountLimit(1)
17+
e1:SetTarget(s.target)
18+
e1:SetOperation(s.operation)
19+
c:RegisterEffect(e1)
20+
end
21+
s.listed_names={160208009}
22+
function s.ffilter(c,fc,sumtype,tp)
23+
return c:IsRace(RACE_WINGEDBEAST,fc,sumtype,tp) and c:IsLevelBelow(4)
24+
end
25+
function s.contactfil(tp)
26+
return Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsAbleToDeckOrExtraAsCost),tp,LOCATION_ONFIELD,0,nil)
27+
end
28+
function s.contactop(g,tp)
29+
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST+REASON_MATERIAL)
30+
end
31+
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
32+
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,3) end
33+
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,3)
34+
end
35+
function s.filter(c)
36+
return c:IsMonster() and c:IsRace(RACE_WINGEDBEAST) and c:IsLevel(2)
37+
end
38+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
39+
--Effect
40+
Duel.DiscardDeck(tp,3,REASON_EFFECT)
41+
if Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil)
42+
and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
43+
and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
44+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATKDEF)
45+
local dg=Duel.SelectMatchingCard(tp,aux.FilterMaximumSideFunctionEx(Card.IsFaceup),tp,0,LOCATION_MZONE,1,1,nil)
46+
Duel.HintSelection(dg)
47+
local e1=Effect.CreateEffect(e:GetHandler())
48+
e1:SetType(EFFECT_TYPE_SINGLE)
49+
e1:SetCode(EFFECT_UPDATE_ATTACK)
50+
e1:SetValue(-1500)
51+
e1:SetReset(RESETS_STANDARD_PHASE_END)
52+
dg:GetFirst():RegisterEffect(e1)
53+
end
54+
end

0 commit comments

Comments
 (0)