Skip to content

Commit 2f0aa1d

Browse files
committed
added Delirium Calabrone
1 parent 9d3925a commit 2f0aa1d

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

rush/c160213056.lua

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
--夢中のカラブローネ
2+
--Delirium Calabrone
3+
--Scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Increase ATK
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_ATKCHANGE)
10+
e1:SetType(EFFECT_TYPE_IGNITION)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetCountLimit(1)
13+
e1:SetCondition(s.condition)
14+
e1:SetCost(s.cost)
15+
e1:SetOperation(s.operation)
16+
c:RegisterEffect(e1)
17+
end
18+
s.listed_names={160213055}
19+
function s.cfilter(c)
20+
return c:IsMonster() and c:IsRace(RACE_INSECT) and c:IsAttribute(ATTRIBUTE_LIGHT)
21+
end
22+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
23+
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,1,nil)
24+
end
25+
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
26+
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,3) end
27+
end
28+
function s.thfilter(c)
29+
return c:IsCode(160213055) and c:IsAbleToHand()
30+
end
31+
function s.operation(e,tp,eg,ep,ev,re,r,rp)
32+
--Requirement
33+
if Duel.DiscardDeck(tp,3,REASON_COST)<3 then return end
34+
--Effect
35+
local c=e:GetHandler()
36+
--Increase ATK
37+
local e1=Effect.CreateEffect(c)
38+
e1:SetType(EFFECT_TYPE_SINGLE)
39+
e1:SetCode(EFFECT_UPDATE_ATTACK)
40+
e1:SetValue(500)
41+
e1:SetReset(RESETS_STANDARD_PHASE_END)
42+
c:RegisterEffect(e1)
43+
if Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.thfilter),tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
44+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
45+
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
46+
if #g>0 then
47+
Duel.SendtoHand(g,nil,REASON_EFFECT)
48+
Duel.ConfirmCards(1-tp,g)
49+
end
50+
end
51+
end

0 commit comments

Comments
 (0)