Skip to content

Commit e5ae2cc

Browse files
committed
updated Dragon Roll the Sushi Fairy
1 parent bdeb833 commit e5ae2cc

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

rush/c160203040.lua

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
-- 寿司天使ドラゴンロール
2-
-- Dragon Roll the Sushi Angel
1+
--寿司天使ドラゴンロール
2+
--Dragon Roll the Sushi Fairy
33
local s,id=GetID()
44
function s.initial_effect(c)
55
--Send to GY and destroy
66
local e1=Effect.CreateEffect(c)
7+
e1:SetDescription(aux.Stringid(id,0))
78
e1:SetCategory(CATEGORY_DRAW)
89
e1:SetType(EFFECT_TYPE_IGNITION)
910
e1:SetRange(LOCATION_MZONE)
@@ -15,7 +16,7 @@ function s.initial_effect(c)
1516
end
1617
function s.condition(e,tp,eg,ep,ev,re,r,rp)
1718
local c=e:GetHandler()
18-
return c:IsSummonType(SUMMON_TYPE_NORMAL) and c:IsStatus(STATUS_SUMMON_TURN)
19+
return c:IsStatus(STATUS_SUMMON_TURN) and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=10
1920
end
2021
function s.tdfilter(c)
2122
return c:IsAbleToDeck() and c:IsRace(RACE_FAIRY)
@@ -28,18 +29,17 @@ end
2829
function s.operation(e,tp,eg,ep,ev,re,r,rp)
2930
local c=e:GetHandler()
3031
local tg=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_GRAVE,0,1,1,nil)
31-
if Duel.SendtoDeck(tg,nil,SEQ_DECKBOTTOM,REASON_EFFECT)>0 then
32-
Duel.Draw(tp,1,REASON_EFFECT)
33-
--Cannot attack with level 6 or lower
34-
local e1=Effect.CreateEffect(e:GetHandler())
35-
e1:SetType(EFFECT_TYPE_FIELD)
36-
e1:SetCode(EFFECT_CANNOT_ATTACK)
37-
e1:SetProperty(EFFECT_FLAG_OATH)
38-
e1:SetTargetRange(LOCATION_MZONE,0)
39-
e1:SetTarget(s.ftarget)
40-
e1:SetReset(RESET_PHASE+PHASE_END)
41-
Duel.RegisterEffect(e1,tp)
42-
end
32+
if Duel.SendtoDeck(tg,nil,SEQ_DECKBOTTOM,REASON_EFFECT)<1 then return end
33+
Duel.Draw(tp,1,REASON_EFFECT)
34+
--Cannot attack with level 6 or lower
35+
local e1=Effect.CreateEffect(e:GetHandler())
36+
e1:SetType(EFFECT_TYPE_FIELD)
37+
e1:SetCode(EFFECT_CANNOT_ATTACK)
38+
e1:SetProperty(EFFECT_FLAG_OATH)
39+
e1:SetTargetRange(LOCATION_MZONE,0)
40+
e1:SetTarget(s.ftarget)
41+
e1:SetReset(RESET_PHASE+PHASE_END)
42+
Duel.RegisterEffect(e1,tp)
4343
end
4444
function s.ftarget(e,c)
4545
return c:IsLevelBelow(6)

0 commit comments

Comments
 (0)