Skip to content

Commit d985788

Browse files
committed
added Eye of the Storm
1 parent 69f85a6 commit d985788

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

rush/c160023020.lua

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
--暴風の目
2+
--Eye of the Storm
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Fusion Summon
7+
local params = {s.filter,s.mfilter,s.fextra,Fusion.ShuffleMaterial,mincount=2,maxcount=2}
8+
local e1=Effect.CreateEffect(c)
9+
e1:SetDescription(aux.Stringid(id,0))
10+
e1:SetType(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
11+
e1:SetType(EFFECT_TYPE_IGNITION)
12+
e1:SetRange(LOCATION_MZONE)
13+
e1:SetCountLimit(1)
14+
e1:SetCondition(s.condition)
15+
e1:SetTarget(Fusion.SummonEffTG(table.unpack(params)))
16+
e1:SetOperation(Fusion.SummonEffOP(table.unpack(params)))
17+
c:RegisterEffect(e1)
18+
end
19+
s.listed_names={160402051}
20+
function s.filter(c)
21+
return c:IsCode(160402051)
22+
end
23+
function s.mfilter(c)
24+
return c:IsLocation(LOCATION_GRAVE|LOCATION_MZONE) and c:IsLevelBelow(6) and c:IsAbleToDeck()
25+
end
26+
function s.fextra(e,tp,mg)
27+
return Duel.GetMatchingGroup(s.mfilter,tp,LOCATION_GRAVE,0,nil)
28+
end
29+
function s.condition(e,tp,eg,ep,ev,re,r,rp)
30+
return e:GetHandler():IsStatus(STATUS_SUMMON_TURN)
31+
end

0 commit comments

Comments
 (0)