Skip to content

Commit 412e176

Browse files
committed
added Chaos Sentinel
1 parent 25ae316 commit 412e176

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

rush/c160020041.lua

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
--カオス・センチネル
2+
--Chaos Sentinel
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--Fusion Summon
7+
Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsAttackAbove,1500),aux.FilterBoolFunctionEx(Card.IsAttackBelow,1500))
8+
--Must be Fusion Summoned, or Special Summoned by "The Eye of Timaeus"
9+
local e0=Effect.CreateEffect(c)
10+
e0:SetType(EFFECT_TYPE_SINGLE)
11+
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
12+
e0:SetCode(EFFECT_SPSUMMON_CONDITION)
13+
e0:SetValue(s.splimit)
14+
c:RegisterEffect(e0)
15+
--Spells/Traps cannot be returned
16+
local e1=Effect.CreateEffect(c)
17+
e1:SetType(EFFECT_TYPE_FIELD)
18+
e1:SetCode(EFFECT_CANNOT_TO_DECK)
19+
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE)
20+
e1:SetRange(LOCATION_MZONE)
21+
e1:SetCondition(s.indcond)
22+
e1:SetTarget(s.indtg)
23+
e1:SetTargetRange(LOCATION_ONFIELD,0)
24+
e1:SetValue(s.value)
25+
c:RegisterEffect(e1)
26+
c:AddSideMaximumHandler(e1)
27+
local e2=e1:Clone()
28+
e2:SetCode(EFFECT_CANNOT_TO_HAND)
29+
c:RegisterEffect(e2)
30+
c:AddSideMaximumHandler(e2)
31+
end
32+
s.listed_cards={160020003,160020051} --Sentinel Officer, Galaxy Chaos Fusion
33+
function s.splimit(e,se,sp,st)
34+
return se:GetHandler():IsCode(160020003,160020051)
35+
end
36+
function s.indcond(e)
37+
return Duel.IsTurnPlayer(1-e:GetHandlerPlayer())
38+
end
39+
function s.indtg(e,c)
40+
return c:IsSpellTrap()
41+
end
42+
function s.value(e,re,rp)
43+
return nil~=re
44+
end

0 commit comments

Comments
 (0)