Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alstroemeria-silentlove
ygopro-222DIY-cards
Commits
c9e4e19c
Commit
c9e4e19c
authored
Mar 28, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hole
parent
657fe0ff
Pipeline
#2766
passed with stage
in 8 minutes and 16 seconds
Changes
20
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
12 additions
and
1000 deletions
+12
-1000
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/lflist.conf
expansions/lflist.conf
+9
-2
expansions/pics/82206076.jpg
expansions/pics/82206076.jpg
+0
-0
expansions/pics/82206077.jpg
expansions/pics/82206077.jpg
+0
-0
expansions/pics/82206078.jpg
expansions/pics/82206078.jpg
+0
-0
expansions/pics/82206079.jpg
expansions/pics/82206079.jpg
+0
-0
expansions/pics/82206080.jpg
expansions/pics/82206080.jpg
+0
-0
expansions/pics/82206081.jpg
expansions/pics/82206081.jpg
+0
-0
expansions/pics/82206082.jpg
expansions/pics/82206082.jpg
+0
-0
expansions/pics/82206083.jpg
expansions/pics/82206083.jpg
+0
-0
expansions/script/c114503.lua
expansions/script/c114503.lua
+2
-1
expansions/script/c37564549.lua
expansions/script/c37564549.lua
+1
-1
expansions/script/c82206076.lua
expansions/script/c82206076.lua
+0
-141
expansions/script/c82206077.lua
expansions/script/c82206077.lua
+0
-95
expansions/script/c82206078.lua
expansions/script/c82206078.lua
+0
-133
expansions/script/c82206079.lua
expansions/script/c82206079.lua
+0
-136
expansions/script/c82206080.lua
expansions/script/c82206080.lua
+0
-140
expansions/script/c82206081.lua
expansions/script/c82206081.lua
+0
-126
expansions/script/c82206082.lua
expansions/script/c82206082.lua
+0
-138
expansions/script/c82206083.lua
expansions/script/c82206083.lua
+0
-87
No files found.
expansions/222DIY.cdb
View file @
c9e4e19c
No preview for this file type
expansions/lflist.conf
View file @
c9e4e19c
...
@@ -60,8 +60,8 @@
...
@@ -60,8 +60,8 @@
01171006
0
--诺札利亚 奥尔黛西亚
01171006
0
--诺札利亚 奥尔黛西亚
#36
#36
03606005
0
--失乐第
7
机关 妲塔林
03606005
0
--失乐第
7
机关 妲塔林
03606008
1
--久远第
4
机关 普罗维登斯
03606008
0
--久远第
4
机关 普罗维登斯
03606010
1
--瞬杀星 零式
03606010
0
--瞬杀星 零式
#42
#42
04200110
0
--安藤麻幌的蛋包饭
04200110
0
--安藤麻幌的蛋包饭
04210018
1
--猫耳天堂-幼猫的约定
04210018
1
--猫耳天堂-幼猫的约定
...
@@ -194,10 +194,12 @@
...
@@ -194,10 +194,12 @@
12008003
0
--探索根源 波恋达斯
12008003
0
--探索根源 波恋达斯
12008005
2
--暗黑的质点,波恋达斯
12008005
2
--暗黑的质点,波恋达斯
12008011
1
--双色的轮舞
12008011
1
--双色的轮舞
12008018
0
--漆黑的质点 丘依儿
12008023
1
--双色的星祈
12008023
1
--双色的星祈
12008025
2
--极限的螺旋 波恋达斯
12008025
2
--极限的螺旋 波恋达斯
12008031
1
--双色的幼指
12008031
1
--双色的幼指
12009057
0
--三色的玩伴
12009057
0
--三色的玩伴
12009058
0
--宁静之音 蕾恩缇娅
12009100
1
--镜外的白神 灵源依儿
12009100
1
--镜外的白神 灵源依儿
12010003
1
--
LA
Da
''
ath
理解的亚夫结
12010003
1
--
LA
Da
''
ath
理解的亚夫结
12010016
2
--
LA
SG
Wrath
艾拉斯
12010016
2
--
LA
SG
Wrath
艾拉斯
...
@@ -257,6 +259,7 @@
...
@@ -257,6 +259,7 @@
12081001
1
--魔晶少女 红宝石
12081001
1
--魔晶少女 红宝石
12081002
1
--魔晶少女 绿宝石
12081002
1
--魔晶少女 绿宝石
12081003
1
--魔晶少女 蓝宝石
12081003
1
--魔晶少女 蓝宝石
12083021
0
--十辉圣 素晴的莉薇娅
#140
#140
14000000
0
--时穿剑阵·斩魄
14000000
0
--时穿剑阵·斩魄
14000002
0
--时穿剑阵·诛仙
14000002
0
--时穿剑阵·诛仙
...
@@ -838,6 +841,7 @@
...
@@ -838,6 +841,7 @@
40008650
1
--地狱
of
天堂
40008650
1
--地狱
of
天堂
40008651
0
--智天兵龙 乌利提斯
40008651
0
--智天兵龙 乌利提斯
40008700
0
--炼狱骑士团 死神镰刀龙
40008700
0
--炼狱骑士团 死神镰刀龙
40009016
0
--至高天的加百列
40009156
0
--狂风领主
40009156
0
--狂风领主
40009166
0
--救世主式·狂风领主
40009166
0
--救世主式·狂风领主
40009173
0
--狂风剑刃·超限
40009173
0
--狂风剑刃·超限
...
@@ -1009,6 +1013,7 @@
...
@@ -1009,6 +1013,7 @@
60159907
0
--极夜的龙骑士
60159907
0
--极夜的龙骑士
60159912
1
--连锁束缚
60159912
1
--连锁束缚
60159915
1
--地狱使者亲临
60159915
1
--地狱使者亲临
60159931
0
--裁决之光芒
60159941
0
--光与暗的潜伏者 深渊之伊米尔
60159941
0
--光与暗的潜伏者 深渊之伊米尔
#610
#610
61000040
1
--神赐之门的魔法师-奥伯龙
61000040
1
--神赐之门的魔法师-奥伯龙
...
@@ -1141,6 +1146,7 @@
...
@@ -1141,6 +1146,7 @@
#756
#756
75640052
0
--旅人 伊蕾娜
75640052
0
--旅人 伊蕾娜
75646054
1
--忆梦长廊 琪亚娜
75646054
1
--忆梦长廊 琪亚娜
75646135
1
--白虎姬 璐娅
75646159
0
--崩坏神格 樱华
75646159
0
--崩坏神格 樱华
75646308
1
--逐火之旅
75646308
1
--逐火之旅
75646401
0
--
Nowhere
鹿乃
75646401
0
--
Nowhere
鹿乃
...
@@ -1185,6 +1191,7 @@
...
@@ -1185,6 +1191,7 @@
81000017
2
--幸福论诞生
81000017
2
--幸福论诞生
81005008
1
--薇薇安·伊文捷琳 Ω
81005008
1
--薇薇安·伊文捷琳 Ω
81005026
2
--水晶艾蕾娜·雨夜
81005026
2
--水晶艾蕾娜·雨夜
81005044
0
--二宫爱丽丝
81005053
0
--黑野紫
81005053
0
--黑野紫
81005076
1
--浅见空子·月色
81005076
1
--浅见空子·月色
81008016
1
--不被吓个半死是不可能的
81008016
1
--不被吓个半死是不可能的
...
...
expansions/pics/82206076.jpg
deleted
100644 → 0
View file @
657fe0ff
47.3 KB
expansions/pics/82206077.jpg
deleted
100644 → 0
View file @
657fe0ff
47.9 KB
expansions/pics/82206078.jpg
deleted
100644 → 0
View file @
657fe0ff
50.2 KB
expansions/pics/82206079.jpg
deleted
100644 → 0
View file @
657fe0ff
47.3 KB
expansions/pics/82206080.jpg
deleted
100644 → 0
View file @
657fe0ff
49.8 KB
expansions/pics/82206081.jpg
deleted
100644 → 0
View file @
657fe0ff
49.9 KB
expansions/pics/82206082.jpg
deleted
100644 → 0
View file @
657fe0ff
48.5 KB
expansions/pics/82206083.jpg
deleted
100644 → 0
View file @
657fe0ff
50.1 KB
expansions/script/c114503.lua
View file @
c9e4e19c
...
@@ -2,5 +2,6 @@
...
@@ -2,5 +2,6 @@
local
m
=
114503
local
m
=
114503
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
cm
.
initial_effect
(
c
)
function
cm
.
initial_effect
(
c
)
aux
.
AddRitualProcGreater2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xca1
),
LOCATION_HAND
+
LOCATION_DECK
,
nil
,
aux
.
FilterBoolFunction
(
Card
.
IsType
,
TYPE_FLIP
))
local
e1
=
aux
.
AddRitualProcGreater2
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0xca1
),
LOCATION_HAND
+
LOCATION_DECK
,
nil
,
aux
.
FilterBoolFunction
(
Card
.
IsType
,
TYPE_FLIP
))
e1
:
SetCountLimit
(
1
,
m
+
EFFECT_COUNT_CODE_OATH
)
end
end
expansions/script/c37564549.lua
View file @
c9e4e19c
...
@@ -94,7 +94,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -94,7 +94,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
cm
.
f2
(
c
,
e
,
tp
,
tc
)
function
cm
.
f2
(
c
,
e
,
tp
,
tc
)
return
c
.
Senya_desc_with_nanahira
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocationFromEx
(
tp
,
tp
,
tc
,
c
)
>
0
return
c
.
Senya_desc_with_nanahira
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
GetLocation
Count
FromEx
(
tp
,
tp
,
tc
,
c
)
>
0
end
end
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
cm
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
te
=
e
:
GetLabelObject
()
local
te
=
e
:
GetLabelObject
()
...
...
expansions/script/c82206076.lua
deleted
100644 → 0
View file @
657fe0ff
local
m
=
82206076
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"我太帅了"
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--debuff
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e0
:
SetValue
(
cm
.
plimit
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetTarget
(
cm
.
rmtarget
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
m
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTarget
(
cm
.
checktg
)
c
:
RegisterEffect
(
e3
)
--tohand
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e4
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetCountLimit
(
1
,
m
)
e4
:
SetCost
(
cm
.
cost
)
e4
:
SetTarget
(
cm
.
thtg
)
e4
:
SetOperation
(
cm
.
thop
)
c
:
RegisterEffect
(
e4
)
--remove
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e5
:
SetCategory
(
CATEGORY_DAMAGE
+
CATEGORY_REMOVE
)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCost
(
cm
.
cost
)
e5
:
SetTarget
(
cm
.
rmtg
)
e5
:
SetOperation
(
cm
.
rmop
)
c
:
RegisterEffect
(
e5
)
--spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_REMOVE
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetCountLimit
(
1
,
82216076
)
e6
:
SetCost
(
cm
.
cost
)
e6
:
SetTarget
(
cm
.
sptg
)
e6
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
plimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_PENDULUM
)
~=
SUMMON_TYPE_PENDULUM
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lp
=
800
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
82206075
)
then
lp
=
400
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
lp
)
end
Duel
.
PayLPCost
(
tp
,
lp
)
end
function
cm
.
splimit
(
e
,
c
,
tp
,
sumtype
,
sumpos
,
targetp
)
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
or
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
function
cm
.
rmtarget
(
e
,
c
)
return
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetOwner
()
==
e
:
GetHandlerPlayer
()
end
function
cm
.
checktg
(
e
,
c
)
return
not
c
:
IsPublic
()
end
function
cm
.
filter
(
c
)
return
c
:
IsSetCard
(
0x29c
)
and
not
c
:
IsCode
(
m
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
cm
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
cm
.
rmfilter
(
c
)
return
c
:
IsAbleToRemove
()
end
function
cm
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsControler
(
1
-
tp
)
and
cm
.
rmfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
cm
.
rmfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectTarget
(
tp
,
cm
.
rmfilter
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
then
local
tc2
=
Duel
.
GetOperatedGroup
():
GetFirst
()
if
tc2
:
IsType
(
TYPE_MONSTER
)
then
local
atk
=
tc2
:
GetBaseAttack
()
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
end
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
\ No newline at end of file
expansions/script/c82206077.lua
deleted
100644 → 0
View file @
657fe0ff
local
m
=
82206077
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"邪界幻灵·修罗"
function
cm
.
initial_effect
(
c
)
c
:
SetSPSummonOnce
(
m
)
--fusion material
aux
.
AddFusionProcFunRep
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsFusionSetCard
,
0x29c
),
2
,
true
)
c
:
EnableReviveLimit
()
--spsummon condition
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
--special summon rule
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e2
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetRange
(
LOCATION_EXTRA
)
e2
:
SetCondition
(
cm
.
spcon
)
e2
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e2
)
--banish extra
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e3
:
SetCategory
(
CATEGORY_REMOVE
)
e3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e3
:
SetCountLimit
(
1
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCost
(
cm
.
excost
)
e3
:
SetTarget
(
cm
.
extg
)
e3
:
SetOperation
(
cm
.
exop
)
c
:
RegisterEffect
(
e3
)
--inactivatable
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_INACTIVATE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetValue
(
cm
.
effectfilter
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_DISEFFECT
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetValue
(
cm
.
effectfilter
)
c
:
RegisterEffect
(
e5
)
end
function
cm
.
splimit
(
e
,
se
,
sp
,
st
)
return
e
:
GetHandler
():
GetLocation
()
~=
LOCATION_EXTRA
or
bit
.
band
(
st
,
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
end
function
cm
.
spfilter1
(
c
,
tp
,
sc
)
return
c
:
IsSetCard
(
0x29c
)
and
c
:
IsAbleToDeckAsCost
()
and
Duel
.
GetLocationCountFromEx
(
tp
,
tp
,
c
,
sc
)
end
function
cm
.
spfilter2
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
and
c
:
IsAbleToRemoveAsCost
()
end
function
cm
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
,
tp
,
c
)
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
tp
=
c
:
GetControler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g1
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter1
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
tp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g2
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
spfilter2
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoDeck
(
g1
,
nil
,
2
,
REASON_COST
)
Duel
.
Remove
(
g2
,
POS_FACEUP
,
REASON_COST
)
end
function
cm
.
excost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lp
=
800
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
82206075
)
then
lp
=
400
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
lp
)
end
Duel
.
PayLPCost
(
tp
,
lp
)
end
function
cm
.
extg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_EXTRA
,
1
,
nil
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
1
-
tp
,
LOCATION_EXTRA
)
end
function
cm
.
exop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_EXTRA
)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
sg
=
g
:
FilterSelect
(
tp
,
Card
.
IsAbleToRemove
,
1
,
1
,
nil
,
tp
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
ShuffleExtra
(
1
-
tp
)
end
function
cm
.
effectfilter
(
e
,
ct
)
local
p
=
e
:
GetHandler
():
GetControler
()
local
te
,
tp
,
loc
=
Duel
.
GetChainInfo
(
ct
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
,
CHAININFO_TRIGGERING_LOCATION
)
return
p
==
tp
and
te
:
GetHandler
():
IsSetCard
(
0x29c
)
and
bit
.
band
(
loc
,
LOCATION_PZONE
)
~=
0
end
\ No newline at end of file
expansions/script/c82206078.lua
deleted
100644 → 0
View file @
657fe0ff
local
m
=
82206078
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"邪界幻灵·天邪龙王"
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--debuff
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e0
:
SetValue
(
cm
.
plimit
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetTarget
(
cm
.
rmtarget
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
m
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTarget
(
cm
.
checktg
)
c
:
RegisterEffect
(
e3
)
--remove
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e4
:
SetCategory
(
CATEGORY_REMOVE
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetCountLimit
(
1
,
m
)
e4
:
SetCost
(
cm
.
cost
)
e4
:
SetTarget
(
cm
.
rmtg
)
e4
:
SetOperation
(
cm
.
rmop
)
c
:
RegisterEffect
(
e4
)
--negate
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e5
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_REMOVE
)
e5
:
SetCode
(
EVENT_CHAINING
)
e5
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCondition
(
cm
.
negcon
)
e5
:
SetCost
(
cm
.
cost
)
e5
:
SetTarget
(
cm
.
negtg
)
e5
:
SetOperation
(
cm
.
negop
)
c
:
RegisterEffect
(
e5
)
--spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_REMOVE
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetCountLimit
(
1
,
82216078
)
e6
:
SetCost
(
cm
.
cost
)
e6
:
SetTarget
(
cm
.
sptg
)
e6
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
plimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_PENDULUM
)
~=
SUMMON_TYPE_PENDULUM
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lp
=
800
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
82206075
)
then
lp
=
400
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
lp
)
end
Duel
.
PayLPCost
(
tp
,
lp
)
end
function
cm
.
splimit
(
e
,
c
,
tp
,
sumtype
,
sumpos
,
targetp
)
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
or
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
function
cm
.
rmtarget
(
e
,
c
)
return
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetOwner
()
==
e
:
GetHandlerPlayer
()
end
function
cm
.
checktg
(
e
,
c
)
return
not
c
:
IsPublic
()
end
function
cm
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
cm
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
re
:
GetHandler
()
~=
e
:
GetHandler
()
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
cm
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
re
:
GetHandler
():
IsAbleToRemove
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
expansions/script/c82206079.lua
deleted
100644 → 0
View file @
657fe0ff
local
m
=
82206079
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"我太帅了"
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--debuff
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e0
:
SetValue
(
cm
.
plimit
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetTarget
(
cm
.
rmtarget
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
m
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTarget
(
cm
.
checktg
)
c
:
RegisterEffect
(
e3
)
--remove
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e4
:
SetCategory
(
CATEGORY_REMOVE
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetCountLimit
(
1
,
m
)
e4
:
SetCost
(
cm
.
cost
)
e4
:
SetTarget
(
cm
.
rmtg
)
e4
:
SetOperation
(
cm
.
rmop
)
c
:
RegisterEffect
(
e4
)
--negate
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e5
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_REMOVE
)
e5
:
SetCode
(
EVENT_CHAINING
)
e5
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCondition
(
cm
.
negcon
)
e5
:
SetCost
(
cm
.
cost
)
e5
:
SetTarget
(
cm
.
negtg
)
e5
:
SetOperation
(
cm
.
negop
)
c
:
RegisterEffect
(
e5
)
--spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_REMOVE
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetCountLimit
(
1
,
82216079
)
e6
:
SetCost
(
cm
.
cost
)
e6
:
SetTarget
(
cm
.
sptg
)
e6
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
plimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_PENDULUM
)
~=
SUMMON_TYPE_PENDULUM
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lp
=
800
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
82206075
)
then
lp
=
400
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
lp
)
end
Duel
.
PayLPCost
(
tp
,
lp
)
end
function
cm
.
splimit
(
e
,
c
,
tp
,
sumtype
,
sumpos
,
targetp
)
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
or
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
function
cm
.
rmtarget
(
e
,
c
)
return
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetOwner
()
==
e
:
GetHandlerPlayer
()
end
function
cm
.
checktg
(
e
,
c
)
return
not
c
:
IsPublic
()
end
function
cm
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
IsAbleToRemove
()
end
function
cm
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
e
:
GetHandler
())
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
end
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
filter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
e
:
GetHandler
())
if
g
:
GetCount
()
>
0
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
cm
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
Duel
.
IsChainNegatable
(
ev
)
end
function
cm
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
re
:
GetHandler
():
IsAbleToRemove
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
cm
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
expansions/script/c82206080.lua
deleted
100644 → 0
View file @
657fe0ff
local
m
=
82206080
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"我太帅了"
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--debuff
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e0
:
SetValue
(
cm
.
plimit
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetTarget
(
cm
.
rmtarget
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
m
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTarget
(
cm
.
checktg
)
c
:
RegisterEffect
(
e3
)
--double battle damage
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetCountLimit
(
1
,
m
)
e4
:
SetCost
(
cm
.
cost
)
e4
:
SetCondition
(
cm
.
damcon
)
e4
:
SetOperation
(
cm
.
damop
)
c
:
RegisterEffect
(
e4
)
--atk up
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e5
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCondition
(
cm
.
atkcon
)
e5
:
SetCost
(
cm
.
cost
)
e5
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e5
)
--spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_REMOVE
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetCountLimit
(
1
,
82216080
)
e6
:
SetCost
(
cm
.
cost
)
e6
:
SetTarget
(
cm
.
sptg
)
e6
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
plimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_PENDULUM
)
~=
SUMMON_TYPE_PENDULUM
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lp
=
800
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
82206075
)
then
lp
=
400
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
lp
)
end
Duel
.
PayLPCost
(
tp
,
lp
)
end
function
cm
.
splimit
(
e
,
c
,
tp
,
sumtype
,
sumpos
,
targetp
)
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
or
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
function
cm
.
rmtarget
(
e
,
c
)
return
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetOwner
()
==
e
:
GetHandlerPlayer
()
end
function
cm
.
checktg
(
e
,
c
)
return
not
c
:
IsPublic
()
end
function
cm
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
end
function
cm
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CHANGE_DAMAGE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
cm
.
val
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
cm
.
val
(
e
,
re
,
dam
,
r
,
rp
,
rc
)
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
return
dam
*
2
else
return
dam
end
end
function
cm
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
bc
:
GetAttack
()
>
0
end
function
cm
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
if
c
:
IsRelateToBattle
()
and
c
:
IsFaceup
()
and
bc
:
IsRelateToBattle
()
and
bc
:
IsFaceup
()
then
local
atk
=
bc
:
GetAttack
()
atk
=
atk
/
2
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
atk
)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
expansions/script/c82206081.lua
deleted
100644 → 0
View file @
657fe0ff
local
m
=
82206081
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"我太帅了"
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--debuff
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e0
:
SetValue
(
cm
.
plimit
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetTarget
(
cm
.
rmtarget
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
m
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTarget
(
cm
.
checktg
)
c
:
RegisterEffect
(
e3
)
--pierce
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetCountLimit
(
1
,
m
)
e4
:
SetCost
(
cm
.
cost
)
e4
:
SetCondition
(
cm
.
pircon
)
e4
:
SetOperation
(
cm
.
pirop
)
c
:
RegisterEffect
(
e4
)
--remove from deck
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e5
:
SetCategory
(
CATEGORY_REMOVE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetCode
(
EVENT_BATTLED
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCost
(
cm
.
cost
)
e5
:
SetTarget
(
cm
.
rmtg
)
e5
:
SetOperation
(
cm
.
rmop
)
c
:
RegisterEffect
(
e5
)
--spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_REMOVE
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetCountLimit
(
1
,
82216081
)
e6
:
SetCost
(
cm
.
cost
)
e6
:
SetTarget
(
cm
.
sptg
)
e6
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
plimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_PENDULUM
)
~=
SUMMON_TYPE_PENDULUM
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lp
=
800
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
82206075
)
then
lp
=
400
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
lp
)
end
Duel
.
PayLPCost
(
tp
,
lp
)
end
function
cm
.
splimit
(
e
,
c
,
tp
,
sumtype
,
sumpos
,
targetp
)
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
or
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
function
cm
.
rmtarget
(
e
,
c
)
return
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetOwner
()
==
e
:
GetHandlerPlayer
()
end
function
cm
.
checktg
(
e
,
c
)
return
not
c
:
IsPublic
()
end
function
cm
.
pircon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
end
function
cm
.
pirop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_PIERCE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
cm
.
tgfilter
(
c
)
return
c
:
IsSetCard
(
0x29c
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
and
not
c
:
IsCode
(
m
)
end
function
cm
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
cm
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
tgfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
)
local
tg
=
g
:
GetFirst
()
if
tg
==
nil
then
return
end
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_EFFECT
)
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
\ No newline at end of file
expansions/script/c82206082.lua
deleted
100644 → 0
View file @
657fe0ff
local
m
=
82206082
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"我太帅了"
function
cm
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--debuff
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e0
:
SetValue
(
cm
.
plimit
)
c
:
RegisterEffect
(
e0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
cm
.
splimit
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetTarget
(
cm
.
rmtarget
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
m
)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTarget
(
cm
.
checktg
)
c
:
RegisterEffect
(
e3
)
--recover
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e4
:
SetCategory
(
CATEGORY_RECOVER
)
e4
:
SetType
(
EFFECT_TYPE_IGNITION
)
e4
:
SetRange
(
LOCATION_PZONE
)
e4
:
SetCountLimit
(
1
,
m
)
e4
:
SetCost
(
cm
.
cost
)
e4
:
SetTarget
(
cm
.
rectg
)
e4
:
SetOperation
(
cm
.
recop
)
c
:
RegisterEffect
(
e4
)
--remove
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e5
:
SetCategory
(
CATEGORY_REMOVE
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e5
:
SetCode
(
EVENT_TO_HAND
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCondition
(
cm
.
hdcon
)
e5
:
SetCost
(
cm
.
cost
)
e5
:
SetTarget
(
cm
.
hdtg
)
e5
:
SetOperation
(
cm
.
hdop
)
c
:
RegisterEffect
(
e5
)
--spsummon
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
m
,
2
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_REMOVE
)
e6
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e6
:
SetCountLimit
(
1
,
82216082
)
e6
:
SetCost
(
cm
.
cost
)
e6
:
SetTarget
(
cm
.
sptg
)
e6
:
SetOperation
(
cm
.
spop
)
c
:
RegisterEffect
(
e6
)
end
function
cm
.
plimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_PENDULUM
)
~=
SUMMON_TYPE_PENDULUM
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lp
=
800
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
82206075
)
then
lp
=
400
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
lp
)
end
Duel
.
PayLPCost
(
tp
,
lp
)
end
function
cm
.
splimit
(
e
,
c
,
tp
,
sumtype
,
sumpos
,
targetp
)
return
bit
.
band
(
sumtype
,
SUMMON_TYPE_PENDULUM
)
==
SUMMON_TYPE_PENDULUM
or
not
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
function
cm
.
rmtarget
(
e
,
c
)
return
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetOwner
()
==
e
:
GetHandlerPlayer
()
end
function
cm
.
checktg
(
e
,
c
)
return
not
c
:
IsPublic
()
end
function
cm
.
recfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x29c
)
end
function
cm
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
recfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
local
ct
=
Duel
.
GetMatchingGroupCount
(
cm
.
recfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
ct
*
800
)
end
function
cm
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_PLAYER
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
cm
.
recfilter
,
p
,
LOCATION_MZONE
,
0
,
nil
)
if
ct
>
0
then
Duel
.
Recover
(
p
,
ct
*
800
,
REASON_EFFECT
)
end
end
function
cm
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_DECK
)
end
function
cm
.
hdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DRAW
and
eg
:
IsExists
(
cm
.
cfilter
,
1
,
nil
,
1
-
tp
)
end
function
cm
.
hdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
cm
.
hdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_HAND
,
nil
)
if
g
:
GetCount
()
>
0
then
local
sg
=
g
:
RandomSelect
(
tp
,
1
)
Duel
.
Remove
(
sg
,
POS_FACEUP
,
REASON_EFFECT
)
end
end
function
cm
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
cm
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
\ No newline at end of file
expansions/script/c82206083.lua
deleted
100644 → 0
View file @
657fe0ff
local
m
=
82206083
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"邪界幻灵·艾夏拉"
function
cm
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsAttribute
,
ATTRIBUTE_DARK
),
7
,
2
)
c
:
EnableReviveLimit
()
--overlay
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetTarget
(
cm
.
tg
)
e1
:
SetOperation
(
cm
.
op
)
c
:
RegisterEffect
(
e1
)
--direct attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCountLimit
(
1
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cm
.
datcon
)
e2
:
SetCost
(
cm
.
cost
)
e2
:
SetOperation
(
cm
.
datop
)
c
:
RegisterEffect
(
e2
)
--destroy replace
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTarget
(
cm
.
reptg
)
e3
:
SetValue
(
cm
.
repval
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
+
LOCATION_REMOVED
,
LOCATION_ONFIELD
+
LOCATION_REMOVED
,
1
,
e
:
GetHandler
())
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_XMATERIAL
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
mtfilter
,
tp
,
LOCATION_ONFIELD
+
LOCATION_REMOVED
,
LOCATION_ONFIELD
+
LOCATION_REMOVED
,
1
,
1
,
c
)
if
g
:
GetCount
()
>
0
then
local
og
=
g
:
GetFirst
():
GetOverlayGroup
()
if
og
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
og
,
REASON_RULE
)
end
Duel
.
Overlay
(
c
,
g
)
end
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
lp
=
800
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
82206075
)
then
lp
=
400
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
lp
)
end
Duel
.
PayLPCost
(
tp
,
lp
)
end
function
cm
.
datcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
end
function
cm
.
datop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
repfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
)
and
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsReason
(
REASON_REPLACE
)
end
function
cm
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
eg
:
IsExists
(
cm
.
repfilter
,
1
,
nil
,
tp
)
end
local
oc
=
c
:
GetOverlayGroup
()
if
oc
:
IsExists
(
Card
.
IsAbleToRemove
,
1
,
nil
)
and
Duel
.
SelectEffectYesNo
(
tp
,
e
:
GetHandler
(),
96
)
then
Duel
.
Remove
(
oc
:
Select
(
tp
,
1
,
1
,
nil
),
POS_FACEUP
,
REASON_EFFECT
)
return
true
end
return
false
end
function
cm
.
repval
(
e
,
c
)
return
cm
.
repfilter
(
c
,
e
:
GetHandlerPlayer
())
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment