-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathc100000054.lua
More file actions
28 lines (28 loc) · 884 Bytes
/
c100000054.lua
File metadata and controls
28 lines (28 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--ワイゼルC
function c100000054.initial_effect(c)
--selfdes
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_SELF_DESTROY)
e1:SetCondition(c100000054.sdcon2)
c:RegisterEffect(e1)
--indestructable
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetValue(c100000054.indval)
c:RegisterEffect(e2)
end
function c100000054.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3013)
end
function c100000054.sdcon2(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(c100000054.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler())
end
function c100000054.indval(e,re,tp)
return e:GetHandlerPlayer()~=re:GetHandlerPlayer()
end