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
2e732a83
Commit
2e732a83
authored
Jul 21, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
addb8557
Pipeline
#4217
passed with stages
in 34 minutes and 45 seconds
Changes
48
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
903 additions
and
829 deletions
+903
-829
expansions/222DIY.cdb
expansions/222DIY.cdb
+0
-0
expansions/script/c12014000.lua
expansions/script/c12014000.lua
+2
-2
expansions/script/c12014001.lua
expansions/script/c12014001.lua
+2
-2
expansions/script/c12014003.lua
expansions/script/c12014003.lua
+2
-2
expansions/script/c12014011.lua
expansions/script/c12014011.lua
+2
-2
expansions/script/c12014012.lua
expansions/script/c12014012.lua
+2
-2
expansions/script/c12014013.lua
expansions/script/c12014013.lua
+2
-2
expansions/script/c12014014.lua
expansions/script/c12014014.lua
+2
-2
expansions/script/c12014015.lua
expansions/script/c12014015.lua
+2
-2
expansions/script/c12014016.lua
expansions/script/c12014016.lua
+2
-2
expansions/script/c12014020.lua
expansions/script/c12014020.lua
+2
-2
expansions/script/c12025009.lua
expansions/script/c12025009.lua
+9
-0
expansions/script/c12083001.lua
expansions/script/c12083001.lua
+2
-1
expansions/script/c12083003.lua
expansions/script/c12083003.lua
+3
-2
expansions/script/c12083004.lua
expansions/script/c12083004.lua
+2
-1
expansions/script/c12083005.lua
expansions/script/c12083005.lua
+2
-1
expansions/script/c12083010.lua
expansions/script/c12083010.lua
+2
-1
expansions/script/c12083011.lua
expansions/script/c12083011.lua
+2
-1
expansions/script/c12083012.lua
expansions/script/c12083012.lua
+2
-1
expansions/script/c12083013.lua
expansions/script/c12083013.lua
+2
-1
expansions/script/c12083014.lua
expansions/script/c12083014.lua
+3
-2
expansions/script/c12083015.lua
expansions/script/c12083015.lua
+2
-1
expansions/script/c12083020.lua
expansions/script/c12083020.lua
+3
-2
expansions/script/c12083021.lua
expansions/script/c12083021.lua
+3
-2
expansions/script/c16101183.lua
expansions/script/c16101183.lua
+2
-1
expansions/script/c16107119.lua
expansions/script/c16107119.lua
+9
-0
expansions/script/c40008626.lua
expansions/script/c40008626.lua
+1
-0
expansions/script/c4210007.lua
expansions/script/c4210007.lua
+2
-1
expansions/script/c4210008.lua
expansions/script/c4210008.lua
+3
-2
expansions/script/c4210009.lua
expansions/script/c4210009.lua
+3
-2
expansions/script/c46564044.lua
expansions/script/c46564044.lua
+1
-9
expansions/script/c47500015.lua
expansions/script/c47500015.lua
+127
-126
expansions/script/c47510025.lua
expansions/script/c47510025.lua
+153
-152
expansions/script/c47510028.lua
expansions/script/c47510028.lua
+11
-1
expansions/script/c47510115.lua
expansions/script/c47510115.lua
+84
-83
expansions/script/c47510119.lua
expansions/script/c47510119.lua
+138
-143
expansions/script/c47510241.lua
expansions/script/c47510241.lua
+67
-58
expansions/script/c47510254.lua
expansions/script/c47510254.lua
+129
-120
expansions/script/c47530157.lua
expansions/script/c47530157.lua
+62
-61
expansions/script/c60150814.lua
expansions/script/c60150814.lua
+2
-1
expansions/script/c60159907.lua
expansions/script/c60159907.lua
+2
-1
expansions/script/c60159941.lua
expansions/script/c60159941.lua
+20
-11
expansions/script/c72411180.lua
expansions/script/c72411180.lua
+5
-5
expansions/script/c72411190.lua
expansions/script/c72411190.lua
+6
-6
expansions/script/c72411200.lua
expansions/script/c72411200.lua
+2
-2
expansions/script/c72411440.lua
expansions/script/c72411440.lua
+4
-4
expansions/script/c72411510.lua
expansions/script/c72411510.lua
+4
-4
expansions/script/c72411610.lua
expansions/script/c72411610.lua
+9
-0
No files found.
expansions/222DIY.cdb
View file @
2e732a83
No preview for this file type
expansions/script/c12014000.lua
View file @
2e732a83
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e1
:
SetRange
(
0xff
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_MACHINE
)
e1
:
SetValue
(
RACE_MACHINE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon proc
--special summon proc
...
...
expansions/script/c12014001.lua
View file @
2e732a83
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e1
:
SetRange
(
0xff
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_MACHINE
)
e1
:
SetValue
(
RACE_MACHINE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12014003.lua
View file @
2e732a83
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e1
:
SetRange
(
0xff
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_MACHINE
)
e1
:
SetValue
(
RACE_MACHINE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
--
...
...
expansions/script/c12014011.lua
View file @
2e732a83
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e1
:
SetRange
(
0xff
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_MACHINE
)
e1
:
SetValue
(
RACE_MACHINE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--tohand
--tohand
...
...
expansions/script/c12014012.lua
View file @
2e732a83
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e1
:
SetRange
(
0xff
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_MACHINE
)
e1
:
SetValue
(
RACE_MACHINE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12014013.lua
View file @
2e732a83
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e1
:
SetRange
(
0xff
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_MACHINE
)
e1
:
SetValue
(
RACE_MACHINE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12014014.lua
View file @
2e732a83
...
@@ -10,8 +10,8 @@ function cm.initial_effect(c)
...
@@ -10,8 +10,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e1
:
SetRange
(
0xff
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_MACHINE
)
e1
:
SetValue
(
RACE_MACHINE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--to hand
--to hand
...
...
expansions/script/c12014015.lua
View file @
2e732a83
...
@@ -10,8 +10,8 @@ function cm.initial_effect(c)
...
@@ -10,8 +10,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e1
:
SetRange
(
0xff
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_MACHINE
)
e1
:
SetValue
(
RACE_MACHINE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--immune
--immune
...
...
expansions/script/c12014016.lua
View file @
2e732a83
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,8 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e1
:
SetRange
(
0xff
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_MACHINE
)
e1
:
SetValue
(
RACE_MACHINE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--tohand
--tohand
...
...
expansions/script/c12014020.lua
View file @
2e732a83
...
@@ -10,8 +10,8 @@ function cm.initial_effect(c)
...
@@ -10,8 +10,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e1
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e1
:
SetRange
(
0xff
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_MACHINE
)
e1
:
SetValue
(
RACE_MACHINE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon
--special summon
...
...
expansions/script/c12025009.lua
View file @
2e732a83
...
@@ -21,6 +21,15 @@ function c12025009.initial_effect(c)
...
@@ -21,6 +21,15 @@ function c12025009.initial_effect(c)
e1
:
SetTarget
(
c12025009
.
target
)
e1
:
SetTarget
(
c12025009
.
target
)
e1
:
SetOperation
(
c12025009
.
operation
)
e1
:
SetOperation
(
c12025009
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--RACE_DRAGON
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_ADD_RACE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
RACE_DRAGON
)
c
:
RegisterEffect
(
e2
)
end
end
function
c12025009
.
cfilter
(
c
,
tp
)
function
c12025009
.
cfilter
(
c
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
return
c
:
IsPreviousLocation
(
LOCATION_DECK
)
...
...
expansions/script/c12083001.lua
View file @
2e732a83
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--special summon proc
--special summon proc
...
...
expansions/script/c12083003.lua
View file @
2e732a83
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--target
--target
...
@@ -81,7 +82,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -81,7 +82,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_ADD_TYPE
)
e1
:
SetCode
(
EFFECT_ADD_TYPE
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TEMP_REMOVE
-
RESET_TURN_SET
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TEMP_REMOVE
-
RESET_TURN_SET
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
...
...
expansions/script/c12083004.lua
View file @
2e732a83
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
LOCATION_ONFIELD
+
LOCATION_EXTRA
+
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--search
--search
...
...
expansions/script/c12083005.lua
View file @
2e732a83
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
--
...
...
expansions/script/c12083010.lua
View file @
2e732a83
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--target
--target
...
...
expansions/script/c12083011.lua
View file @
2e732a83
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--draw
--draw
...
...
expansions/script/c12083012.lua
View file @
2e732a83
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--draw
--draw
...
...
expansions/script/c12083013.lua
View file @
2e732a83
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
...
...
expansions/script/c12083014.lua
View file @
2e732a83
...
@@ -10,7 +10,8 @@ function cm.initial_effect(c)
...
@@ -10,7 +10,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--to hand
--to hand
...
@@ -87,7 +88,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -87,7 +88,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_ADD_TYPE
)
e1
:
SetCode
(
EFFECT_ADD_TYPE
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TEMP_REMOVE
-
RESET_TURN_SET
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TEMP_REMOVE
-
RESET_TURN_SET
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
...
...
expansions/script/c12083015.lua
View file @
2e732a83
...
@@ -10,7 +10,8 @@ function cm.initial_effect(c)
...
@@ -10,7 +10,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--immune
--immune
...
...
expansions/script/c12083020.lua
View file @
2e732a83
...
@@ -10,7 +10,8 @@ function cm.initial_effect(c)
...
@@ -10,7 +10,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--to grave
--to grave
...
@@ -26,7 +27,7 @@ function cm.initial_effect(c)
...
@@ -26,7 +27,7 @@ function cm.initial_effect(c)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetCondition
(
cm
.
matcon
)
e5
:
SetCondition
(
cm
.
matcon
)
e5
:
SetOperation
(
cm
.
matop
)
e5
:
SetOperation
(
cm
.
matop
)
...
...
expansions/script/c12083021.lua
View file @
2e732a83
...
@@ -11,13 +11,14 @@ function cm.initial_effect(c)
...
@@ -11,13 +11,14 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0xff
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
e1
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--indes
--indes
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
cm
.
immcon
)
e2
:
SetCondition
(
cm
.
immcon
)
e2
:
SetOperation
(
cm
.
immop
)
e2
:
SetOperation
(
cm
.
immop
)
...
...
expansions/script/c16101183.lua
View file @
2e732a83
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
...
@@ -7,7 +7,8 @@ function cm.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
0x7f
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
RACE_ZOMBIE
)
e1
:
SetValue
(
RACE_ZOMBIE
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
expansions/script/c16107119.lua
View file @
2e732a83
...
@@ -54,6 +54,15 @@ function cm.initial_effect(c)
...
@@ -54,6 +54,15 @@ function cm.initial_effect(c)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCondition
(
cm
.
copycon2
)
e4
:
SetCondition
(
cm
.
copycon2
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--attribute
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e5
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetValue
(
0x2f
)
c
:
RegisterEffect
(
e5
)
end
end
function
cm
.
mfilter
(
c
,
xyzc
)
function
cm
.
mfilter
(
c
,
xyzc
)
return
c
:
IsRankAbove
(
10
)
return
c
:
IsRankAbove
(
10
)
...
...
expansions/script/c40008626.lua
View file @
2e732a83
...
@@ -12,6 +12,7 @@ function c40008626.initial_effect(c)
...
@@ -12,6 +12,7 @@ function c40008626.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e2
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
ATTRIBUTE_DARK
)
e2
:
SetValue
(
ATTRIBUTE_DARK
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
...
expansions/script/c4210007.lua
View file @
2e732a83
...
@@ -28,7 +28,8 @@ function c4210007.initial_effect(c)
...
@@ -28,7 +28,8 @@ function c4210007.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e3
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e3
:
SetRange
(
0xff
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
ATTRIBUTE_EARTH
)
e3
:
SetValue
(
ATTRIBUTE_EARTH
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
...
...
expansions/script/c4210008.lua
View file @
2e732a83
...
@@ -16,7 +16,7 @@ function c4210008.initial_effect(c)
...
@@ -16,7 +16,7 @@ function c4210008.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_TODECK
)
e2
:
SetCategory
(
CATEGORY_TODECK
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_RELEASE
)
e2
:
SetCode
(
EVENT_RELEASE
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
4210008
)
e2
:
SetCountLimit
(
1
,
4210008
)
e2
:
SetCondition
(
c4210008
.
otcon
)
e2
:
SetCondition
(
c4210008
.
otcon
)
...
@@ -28,7 +28,8 @@ function c4210008.initial_effect(c)
...
@@ -28,7 +28,8 @@ function c4210008.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e3
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e3
:
SetRange
(
0xff
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
ATTRIBUTE_WIND
)
e3
:
SetValue
(
ATTRIBUTE_WIND
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
...
...
expansions/script/c4210009.lua
View file @
2e732a83
...
@@ -26,7 +26,8 @@ function c4210009.initial_effect(c)
...
@@ -26,7 +26,8 @@ function c4210009.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e3
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e3
:
SetRange
(
0xff
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
ATTRIBUTE_DARK
)
e3
:
SetValue
(
ATTRIBUTE_DARK
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
c4210009
.
tgcard
=
nil
c4210009
.
tgcard
=
nil
...
@@ -39,7 +40,7 @@ function c4210009.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -39,7 +40,7 @@ function c4210009.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c4210009
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
if
chk
==
0
then
return
ft
>-
1
and
Duel
.
IsExistingMatchingCard
(
c4210009
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
ft
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4210009
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4210009
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
,
ft
)
if
g
:
GetFirst
():
GetFlagEffect
(
4210010
)
~=
0
then
e
:
SetLabel
(
1
)
c4210009
.
tgcard
=
g
:
GetFirst
()
else
e
:
SetLabel
(
0
)
end
if
g
:
GetFirst
():
GetFlagEffect
(
4210010
)
~=
0
then
e
:
SetLabel
(
1
)
c4210009
.
tgcard
=
g
:
GetFirst
()
else
e
:
SetLabel
(
0
)
end
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c4210009
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4210009
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
expansions/script/c46564044.lua
View file @
2e732a83
...
@@ -26,18 +26,10 @@ function cm.initial_effect(c)
...
@@ -26,18 +26,10 @@ function cm.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetCode
(
EFFECT_ADD_RACE
)
e3
:
SetCode
(
EFFECT_ADD_RACE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
RACE_ZOMBIE
)
e3
:
SetValue
(
RACE_ZOMBIE
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
e4
:
SetRange
(
LOCATION_EXTRA
)
c
:
RegisterEffect
(
e4
)
local
e5
=
e3
:
Clone
()
e5
:
SetRange
(
LOCATION_GRAVE
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e3
:
Clone
()
e6
:
SetRange
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e6
)
--spsummon
--spsummon
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e7
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
expansions/script/c47500015.lua
View file @
2e732a83
This diff is collapsed.
Click to expand it.
expansions/script/c47510025.lua
View file @
2e732a83
This diff is collapsed.
Click to expand it.
expansions/script/c47510028.lua
View file @
2e732a83
...
@@ -55,6 +55,15 @@ function c47510028.initial_effect(c)
...
@@ -55,6 +55,15 @@ function c47510028.initial_effect(c)
e8
:
SetTarget
(
c47510028
.
drtg
)
e8
:
SetTarget
(
c47510028
.
drtg
)
e8
:
SetOperation
(
c47510028
.
drop
)
e8
:
SetOperation
(
c47510028
.
drop
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
--attribute light
local
ea
=
Effect
.
CreateEffect
(
c
)
ea
:
SetType
(
EFFECT_TYPE_SINGLE
)
ea
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
ea
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
ea
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
ea
:
SetRange
(
LOCATION_MZONE
)
ea
:
SetValue
(
ATTRIBUTE_FIRE
)
c
:
RegisterEffect
(
ea
)
end
end
function
c47510028
.
pcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510028
.
pcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
...
@@ -74,7 +83,8 @@ function c47510028.pop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -74,7 +83,8 @@ function c47510028.pop(e,tp,eg,ep,ev,re,r,rp)
if
a
:
IsControler
(
1
-
tp
)
then
a
,
d
=
d
,
a
end
if
a
:
IsControler
(
1
-
tp
)
then
a
,
d
=
d
,
a
end
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
2700
)
e1
:
SetValue
(
2700
)
...
...
expansions/script/c47510115.lua
View file @
2e732a83
...
@@ -2,101 +2,102 @@
...
@@ -2,101 +2,102 @@
local
m
=
47510115
local
m
=
47510115
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
c47510115
.
initial_effect
(
c
)
function
c47510115
.
initial_effect
(
c
)
c
:
SetSPSummonOnce
(
47510115
)
c
:
SetSPSummonOnce
(
47510115
)
--pendulum summon
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
--synchro summon
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
c47510115
.
sfilter
),
1
,
1
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
c47510115
.
sfilter
),
1
,
1
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--Fraunhofer
--Fraunhofer
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_REVERSE_RECOVER
)
e1
:
SetCode
(
EFFECT_REVERSE_RECOVER
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_REFLECT_DAMAGE
)
e2
:
SetCode
(
EFFECT_REFLECT_DAMAGE
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetTargetRange
(
1
,
0
)
e2
:
SetValue
(
c47510115
.
refcon
)
e2
:
SetValue
(
c47510115
.
refcon
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--Attribute Dark
--Attribute Dark
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e3
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetValue
(
ATTRIBUTE_FIRE
)
e3
:
SetRange
(
LOCATION_MZONE
)
c
:
RegisterEffect
(
e3
)
e3
:
SetValue
(
ATTRIBUTE_FIRE
)
--Fraunhofer
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
--Fraunhofer
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_REVERSE_RECOVER
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_REVERSE_RECOVER
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetValue
(
1
)
e4
:
SetTargetRange
(
1
,
0
)
c
:
RegisterEffect
(
e4
)
e4
:
SetValue
(
1
)
local
e5
=
Effect
.
CreateEffect
(
c
)
c
:
RegisterEffect
(
e4
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCode
(
EFFECT_REFLECT_DAMAGE
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCode
(
EFFECT_REFLECT_DAMAGE
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
1
,
0
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetValue
(
c47510115
.
refcon
)
e5
:
SetTargetRange
(
1
,
0
)
c
:
RegisterEffect
(
e5
)
e5
:
SetValue
(
c47510115
.
refcon
)
--Sol Shot
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
--Sol Shot
e6
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e6
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e6
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e6
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e6
:
SetTarget
(
c47510115
.
reptg
)
e6
:
SetRange
(
LOCATION_MZONE
)
c
:
RegisterEffect
(
e6
)
e6
:
SetTarget
(
c47510115
.
reptg
)
--pendulum
c
:
RegisterEffect
(
e6
)
local
e10
=
Effect
.
CreateEffect
(
c
)
--pendulum
e10
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
local
e10
=
Effect
.
CreateEffect
(
c
)
e10
:
SetCode
(
EVENT_DESTROYED
)
e10
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e10
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e10
:
SetCode
(
EVENT_DESTROYED
)
e10
:
SetCondition
(
c47510115
.
pencon
)
e10
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e10
:
SetTarget
(
c47510115
.
pentg
)
e10
:
SetCondition
(
c47510115
.
pencon
)
e10
:
SetOperation
(
c47510115
.
penop
)
e10
:
SetTarget
(
c47510115
.
pentg
)
c
:
RegisterEffect
(
e10
)
e10
:
SetOperation
(
c47510115
.
penop
)
c
:
RegisterEffect
(
e10
)
end
end
function
c47510115
.
sfilter
(
c
)
function
c47510115
.
sfilter
(
c
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
return
c
:
IsType
(
TYPE_PENDULUM
)
and
c
:
IsAttribute
(
ATTRIBUTE_LIGHT
)
end
end
function
c47510115
.
refcon
(
e
,
re
,
val
,
r
,
rp
,
rc
)
function
c47510115
.
refcon
(
e
,
re
,
val
,
r
,
rp
,
rc
)
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
==
e
:
GetHandler
():
GetControler
()
return
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
rp
==
e
:
GetHandler
():
GetControler
()
end
end
function
c47510115
.
f
(
c
,
e
)
function
c47510115
.
f
(
c
,
e
)
return
c
:
IsAbleToGraveAsCost
()
and
not
c
:
IsImmuneToEffect
(
e
)
return
c
:
IsAbleToGraveAsCost
()
and
not
c
:
IsImmuneToEffect
(
e
)
end
end
function
c47510115
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47510115
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
and
Duel
.
IsExistingMatchingCard
(
c47510115
.
f
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_SYNCHRO
)
and
Duel
.
IsExistingMatchingCard
(
c47510115
.
f
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
,
e
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
47510115
,
1
))
then
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
47510115
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c47510115
.
f
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
e
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c47510115
.
f
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
1
,
nil
,
e
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
return
true
return
true
else
return
false
end
else
return
false
end
end
end
function
c47510115
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510115
.
pencon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
return
bit
.
band
(
r
,
REASON_EFFECT
+
REASON_BATTLE
)
~=
0
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
end
end
function
c47510115
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47510115
.
pentg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
if
chk
==
0
then
return
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
or
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
end
end
end
function
c47510115
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510115
.
penop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
if
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
0
)
and
not
Duel
.
CheckLocation
(
tp
,
LOCATION_PZONE
,
1
)
then
return
false
end
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
Duel
.
MoveToField
(
c
,
tp
,
tp
,
LOCATION_PZONE
,
POS_FACEUP
,
true
)
end
end
end
end
\ No newline at end of file
expansions/script/c47510119.lua
View file @
2e732a83
This diff is collapsed.
Click to expand it.
expansions/script/c47510241.lua
View file @
2e732a83
...
@@ -2,72 +2,81 @@
...
@@ -2,72 +2,81 @@
local
m
=
47510241
local
m
=
47510241
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
c47510241
.
initial_effect
(
c
)
function
c47510241
.
initial_effect
(
c
)
--immune
--immune
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
c47510241
.
efilter
)
e1
:
SetValue
(
c47510241
.
efilter
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--charnge
--RACE_DRAGON
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_ADD_RACE
)
e3
:
SetCountLimit
(
1
,
47510241
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetCondition
(
c47510241
.
crcon
)
e2
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetOperation
(
c47510241
.
crop
)
e2
:
SetValue
(
RACE_FIEND
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e2
)
--Change
--charnge
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e7
:
SetDescription
(
aux
.
Stringid
(
47510241
,
0
))
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e7
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e3
:
SetCountLimit
(
1
,
47510241
)
e7
:
SetTarget
(
c47510241
.
changetg
)
e3
:
SetCondition
(
c47510241
.
crcon
)
e7
:
SetOperation
(
c47510241
.
changeop
)
e3
:
SetOperation
(
c47510241
.
crop
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e3
)
--Change
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetDescription
(
aux
.
Stringid
(
47510241
,
0
))
e7
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e7
:
SetTarget
(
c47510241
.
changetg
)
e7
:
SetOperation
(
c47510241
.
changeop
)
c
:
RegisterEffect
(
e7
)
end
end
function
c47510241
.
efilter
(
e
,
te
)
function
c47510241
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
end
function
c47510241
.
changetg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47510241
.
changetg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
.
dfc_front_side
and
c
.
dfc_back_side
==
c
:
GetOriginalCode
()
end
if
chk
==
0
then
return
c
.
dfc_front_side
and
c
.
dfc_back_side
==
c
:
GetOriginalCode
()
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
end
function
c47510241
.
changeop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47510241
.
changeop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
or
c
:
IsImmuneToEffect
(
e
)
then
return
end
local
tcode
=
c
.
dfc_front_side
local
tcode
=
c
.
dfc_front_side
c
:
SetEntityCode
(
tcode
,
true
)
c
:
SetEntityCode
(
tcode
,
true
)
c
:
ReplaceEffect
(
tcode
,
0
,
0
)
c
:
ReplaceEffect
(
tcode
,
0
,
0
)
end
end
function
c47510241
.
crcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510241
.
crcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
end
end
function
c47510241
.
crop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510241
.
crop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
aux
.
ExceptThisCard
(
e
))
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
aux
.
ExceptThisCard
(
e
))
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e3
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e3
:
SetValue
(
4500
)
e3
:
SetValue
(
4500
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
\ No newline at end of file
expansions/script/c47510254.lua
View file @
2e732a83
...
@@ -2,146 +2,155 @@
...
@@ -2,146 +2,155 @@
local
m
=
47510254
local
m
=
47510254
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
c47510254
.
initial_effect
(
c
)
function
c47510254
.
initial_effect
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
aux
.
EnablePendulumAttribute
(
c
)
--synchro summon
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
Card
.
IsType
,
TYPE_PENDULUM
),
1
)
aux
.
AddSynchroProcedure
(
c
,
nil
,
aux
.
NonTuner
(
Card
.
IsType
,
TYPE_PENDULUM
),
1
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--splimit
--splimit
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetTarget
(
c47510254
.
splimit
)
e1
:
SetTarget
(
c47510254
.
splimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetCondition
(
c47510254
.
discon
)
e2
:
SetCondition
(
c47510254
.
discon
)
e2
:
SetOperation
(
c47510254
.
disop
)
e2
:
SetOperation
(
c47510254
.
disop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetValue
(
-
500
)
e3
:
SetValue
(
-
500
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e3
:
Clone
()
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e4
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e5
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e5
:
SetValue
(
500
)
e5
:
SetValue
(
500
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
local
e6
=
e5
:
Clone
()
local
e6
=
e5
:
Clone
()
e6
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e6
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e7
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e7
:
SetCondition
(
c47510254
.
tacon
)
e7
:
SetCondition
(
c47510254
.
tacon
)
e7
:
SetValue
(
3
)
e7
:
SetValue
(
3
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
local
e8
=
Effect
.
CreateEffect
(
c
)
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e8
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e8
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetCondition
(
c47510254
.
discon2
)
e8
:
SetCondition
(
c47510254
.
discon2
)
e8
:
SetOperation
(
c47510254
.
disop2
)
e8
:
SetOperation
(
c47510254
.
disop2
)
c
:
RegisterEffect
(
e8
)
c
:
RegisterEffect
(
e8
)
--back
--back
local
e9
=
Effect
.
CreateEffect
(
c
)
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e9
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e9
:
SetCode
(
EVENT_ADJUST
)
e9
:
SetCode
(
EVENT_ADJUST
)
e9
:
SetRange
(
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_HAND
+
LOCATION_EXTRA
)
e9
:
SetRange
(
LOCATION_DECK
+
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_HAND
+
LOCATION_EXTRA
)
e9
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_SET_AVAILABLE
)
e9
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_SET_AVAILABLE
)
e9
:
SetCondition
(
c47510254
.
backon
)
e9
:
SetCondition
(
c47510254
.
backon
)
e9
:
SetOperation
(
c47510254
.
backop
)
e9
:
SetOperation
(
c47510254
.
backop
)
c
:
RegisterEffect
(
e9
)
c
:
RegisterEffect
(
e9
)
--attribute light
local
ea
=
Effect
.
CreateEffect
(
c
)
ea
:
SetType
(
EFFECT_TYPE_SINGLE
)
ea
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
ea
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
ea
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
ea
:
SetRange
(
LOCATION_MZONE
)
ea
:
SetValue
(
ATTRIBUTE_DARK
)
c
:
RegisterEffect
(
ea
)
end
end
c47510254
.
list
=
{
c47510254
.
list
=
{
CATEGORY_DESTROY
,
CATEGORY_DESTROY
,
CATEGORY_RELEASE
,
CATEGORY_RELEASE
,
CATEGORY_REMOVE
,
CATEGORY_REMOVE
,
CATEGORY_TOHAND
,
CATEGORY_TOHAND
,
CATEGORY_TODECK
,
CATEGORY_TODECK
,
CATEGORY_TOGRAVE
,
CATEGORY_TOGRAVE
,
CATEGORY_DECKDES
,
CATEGORY_DECKDES
,
CATEGORY_HANDES
,
CATEGORY_HANDES
,
CATEGORY_POSITION
,
CATEGORY_POSITION
,
CATEGORY_CONTROL
,
CATEGORY_CONTROL
,
CATEGORY_DISABLE
,
CATEGORY_DISABLE
,
CATEGORY_DISABLE_SUMMON
,
CATEGORY_DISABLE_SUMMON
,
CATEGORY_EQUIP
,
CATEGORY_EQUIP
,
CATEGORY_DAMAGE
,
CATEGORY_DAMAGE
,
CATEGORY_RECOVER
,
CATEGORY_RECOVER
,
CATEGORY_ATKCHANGE
,
CATEGORY_ATKCHANGE
,
CATEGORY_DEFCHANGE
,
CATEGORY_DEFCHANGE
,
CATEGORY_COUNTER
,
CATEGORY_COUNTER
,
CATEGORY_LVCHANGE
,
CATEGORY_LVCHANGE
,
CATEGORY_NEGATE
,
CATEGORY_NEGATE
,
}
}
function
c47510254
.
splimit
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
function
c47510254
.
splimit
(
e
,
c
,
tp
,
sumtp
,
sumpos
)
return
not
c
:
IsType
(
TYPE_PENDULUM
)
return
not
c
:
IsType
(
TYPE_PENDULUM
)
end
end
function
c47510254
.
indfilter
(
c
)
function
c47510254
.
indfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_PZONE
)
return
c
:
IsLocation
(
LOCATION_PZONE
)
end
end
function
c47510254
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510254
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
and
g
:
IsExists
(
c47510254
.
indfilter
,
1
,
nil
)
and
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffect
(
47510254
)
==
0
return
g
and
g
:
IsExists
(
c47510254
.
indfilter
,
1
,
nil
)
and
ep
~=
tp
and
e
:
GetHandler
():
GetFlagEffect
(
47510254
)
==
0
end
end
function
c47510254
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510254
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
NegateActivation
(
ev
)
Duel
.
NegateActivation
(
ev
)
c
:
RegisterFlagEffect
(
47510254
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
c
:
RegisterFlagEffect
(
47510254
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c47510254
.
tacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510254
.
tacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
47510255
)
~=
0
return
e
:
GetHandler
():
GetFlagEffect
(
47510255
)
~=
0
end
end
function
c47510254
.
nfilter
(
c
)
function
c47510254
.
nfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_PENDULUM
)
end
end
function
c47510254
.
discon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510254
.
discon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
e
:
GetHandler
():
GetFlagEffect
(
47510255
)
~=
0
then
return
end
if
e
:
GetHandler
():
GetFlagEffect
(
47510255
)
~=
0
then
return
end
if
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
not
Duel
.
IsChainNegatable
(
ev
)
or
not
rp
==
1
-
tp
then
return
false
end
if
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
not
Duel
.
IsChainNegatable
(
ev
)
or
not
rp
==
1
-
tp
then
return
false
end
if
c47510254
.
nfilter
(
re
:
GetHandler
())
then
return
true
end
if
c47510254
.
nfilter
(
re
:
GetHandler
())
then
return
true
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
g
and
g
:
IsExists
(
c47510254
.
nfilter
,
1
,
nil
)
then
return
true
end
if
g
and
g
:
IsExists
(
c47510254
.
nfilter
,
1
,
nil
)
then
return
true
end
local
res
,
ceg
,
cep
,
cev
,
re
,
r
,
rp
=
Duel
.
CheckEvent
(
re
:
GetCode
())
local
res
,
ceg
,
cep
,
cev
,
re
,
r
,
rp
=
Duel
.
CheckEvent
(
re
:
GetCode
())
if
res
and
ceg
and
ceg
:
IsExists
(
c47510254
.
nfilter
,
1
,
nil
)
then
return
true
end
if
res
and
ceg
and
ceg
:
IsExists
(
c47510254
.
nfilter
,
1
,
nil
)
then
return
true
end
for
i
,
ctg
in
pairs
(
c47510254
.
list
)
do
for
i
,
ctg
in
pairs
(
c47510254
.
list
)
do
local
ex
,
tg
,
ct
,
p
,
v
=
Duel
.
GetOperationInfo
(
ev
,
ctg
)
local
ex
,
tg
,
ct
,
p
,
v
=
Duel
.
GetOperationInfo
(
ev
,
ctg
)
if
tg
then
if
tg
then
if
tg
:
IsExists
(
c47510254
.
nfilter
,
1
,
c
)
then
return
true
end
if
tg
:
IsExists
(
c47510254
.
nfilter
,
1
,
c
)
then
return
true
end
elseif
v
and
v
>
0
and
Duel
.
IsExistingMatchingCard
(
c47510254
.
nfilter
,
tp
,
v
,
0
,
1
,
nil
)
then
elseif
v
and
v
>
0
and
Duel
.
IsExistingMatchingCard
(
c47510254
.
nfilter
,
tp
,
v
,
0
,
1
,
nil
)
then
return
true
return
true
end
end
end
end
return
false
return
false
end
end
function
c47510254
.
disop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510254
.
disop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
c
:
RegisterFlagEffect
(
47510255
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
c
:
RegisterFlagEffect
(
47510255
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c47510254
.
backon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510254
.
backon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
.
dfc_front_side
and
c
:
GetOriginalCode
()
==
c
.
dfc_back_side
return
c
.
dfc_front_side
and
c
:
GetOriginalCode
()
==
c
.
dfc_back_side
end
end
function
c47510254
.
backop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47510254
.
backop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tcode
=
c
.
dfc_front_side
local
tcode
=
c
.
dfc_front_side
c
:
SetEntityCode
(
tcode
)
c
:
SetEntityCode
(
tcode
)
Duel
.
ConfirmCards
(
tp
,
Group
.
FromCards
(
c
))
Duel
.
ConfirmCards
(
tp
,
Group
.
FromCards
(
c
))
Duel
.
ConfirmCards
(
1
-
tp
,
Group
.
FromCards
(
c
))
Duel
.
ConfirmCards
(
1
-
tp
,
Group
.
FromCards
(
c
))
c
:
ReplaceEffect
(
tcode
,
0
,
0
)
c
:
ReplaceEffect
(
tcode
,
0
,
0
)
end
end
\ No newline at end of file
expansions/script/c47530157.lua
View file @
2e732a83
...
@@ -2,84 +2,85 @@
...
@@ -2,84 +2,85 @@
local
m
=
47530157
local
m
=
47530157
local
cm
=
_G
[
"c"
..
m
]
local
cm
=
_G
[
"c"
..
m
]
function
c47530157
.
initial_effect
(
c
)
function
c47530157
.
initial_effect
(
c
)
--Attribute Dark
--Attribute Dark
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetCode
(
EFFECT_ADD_RACE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e1
:
SetValue
(
RACE_PSYCHO
)
e1
:
SetRange
(
LOCATION_MZONE
)
c
:
RegisterEffect
(
e1
)
e1
:
SetValue
(
RACE_PSYCHO
)
--special summon
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
--special summon
e2
:
SetDescription
(
aux
.
Stringid
(
47530157
,
0
))
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetDescription
(
aux
.
Stringid
(
47530157
,
0
))
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetCountLimit
(
1
,
47530157
)
e2
:
SetRange
(
LOCATION_HAND
)
e2
:
SetCondition
(
c47530157
.
spcon
)
e2
:
SetCountLimit
(
1
,
47530157
)
e2
:
SetTarget
(
c47530157
.
sptg
)
e2
:
SetCondition
(
c47530157
.
spcon
)
e2
:
SetOperation
(
c47530157
.
spop
)
e2
:
SetTarget
(
c47530157
.
sptg
)
c
:
RegisterEffect
(
e2
)
e2
:
SetOperation
(
c47530157
.
spop
)
--effect
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
--effect
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCode
(
EVENT_BE_MATERIAL
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e3
:
SetCode
(
EVENT_BE_MATERIAL
)
e3
:
SetCondition
(
c47530157
.
efcon
)
e3
:
SetProperty
(
EFFECT_FLAG_EVENT_PLAYER
)
e3
:
SetOperation
(
c47530157
.
efop
)
e3
:
SetCondition
(
c47530157
.
efcon
)
c
:
RegisterEffect
(
e3
)
e3
:
SetOperation
(
c47530157
.
efop
)
c
:
RegisterEffect
(
e3
)
end
end
c47530157
.
is_named_with_EFSF
=
1
c47530157
.
is_named_with_EFSF
=
1
function
c47530157
.
IsEFSF
(
c
)
function
c47530157
.
IsEFSF
(
c
)
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
local
m
=
_G
[
"c"
..
c
:
GetCode
()]
return
m
and
m
.
is_named_with_EFSF
return
m
and
m
.
is_named_with_EFSF
end
end
function
c47530157
.
spfilter
(
c
)
function
c47530157
.
spfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
47530143
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
47530143
)
end
end
function
c47530157
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47530157
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c47530157
.
spfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c47530157
.
spfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
)
end
end
function
c47530157
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47530157
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c47530157
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47530157
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
if
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
e
:
GetHandler
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
function
c47530157
.
efcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47530157
.
efcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x5d5
)
return
e
:
GetHandler
():
GetReasonCard
():
IsSetCard
(
0x5d5
)
end
end
function
c47530157
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47530157
.
efop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rc
=
c
:
GetReasonCard
()
local
rc
=
c
:
GetReasonCard
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
47530157
,
1
))
e1
:
SetDescription
(
aux
.
Stringid
(
47530157
,
1
))
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetCondition
(
c47530157
.
actcon
)
e1
:
SetCondition
(
c47530157
.
actcon
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
rc
:
RegisterEffect
(
e1
,
true
)
rc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
47530157
,
2
))
e2
:
SetDescription
(
aux
.
Stringid
(
47530157
,
2
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e2
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetCondition
(
aux
.
bdocon
)
e2
:
SetCondition
(
aux
.
bdocon
)
e2
:
SetOperation
(
c47530157
.
caop
)
e2
:
SetOperation
(
c47530157
.
caop
)
rc
:
RegisterEffect
(
e2
,
true
)
rc
:
RegisterEffect
(
e2
,
true
)
end
end
function
c47530157
.
actcon
(
e
)
function
c47530157
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
end
end
function
c47530157
.
caop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47530157
.
caop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChainAttack
()
Duel
.
ChainAttack
()
end
end
\ No newline at end of file
expansions/script/c60150814.lua
View file @
2e732a83
...
@@ -16,7 +16,8 @@ function c60150814.initial_effect(c)
...
@@ -16,7 +16,8 @@ function c60150814.initial_effect(c)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
)
e12
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e12
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e12
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e12
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e12
:
SetRange
(
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_EXTRA
+
LOCATION_OVERLAY
)
e12
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e12
:
SetRange
(
LOCATION_MZONE
)
e12
:
SetValue
(
ATTRIBUTE_DARK
)
e12
:
SetValue
(
ATTRIBUTE_DARK
)
c
:
RegisterEffect
(
e12
)
c
:
RegisterEffect
(
e12
)
--特招免疫
--特招免疫
...
...
expansions/script/c60159907.lua
View file @
2e732a83
...
@@ -7,7 +7,8 @@ function c60159907.initial_effect(c)
...
@@ -7,7 +7,8 @@ function c60159907.initial_effect(c)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
)
e12
:
SetType
(
EFFECT_TYPE_SINGLE
)
e12
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e12
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e12
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e12
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
e12
:
SetRange
(
LOCATION_ONFIELD
+
LOCATION_GRAVE
+
LOCATION_REMOVED
+
LOCATION_EXTRA
+
LOCATION_OVERLAY
)
e12
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e12
:
SetRange
(
LOCATION_MZONE
)
e12
:
SetValue
(
ATTRIBUTE_DARK
)
e12
:
SetValue
(
ATTRIBUTE_DARK
)
c
:
RegisterEffect
(
e12
)
c
:
RegisterEffect
(
e12
)
--spsummon condition
--spsummon condition
...
...
expansions/script/c60159941.lua
View file @
2e732a83
...
@@ -17,16 +17,25 @@ function c60159941.initial_effect(c)
...
@@ -17,16 +17,25 @@ function c60159941.initial_effect(c)
e1
:
SetValue
(
c60159941
.
linklimit
)
e1
:
SetValue
(
c60159941
.
linklimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--base atk/def
--base atk/def
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
c60159941
.
atkval
)
e2
:
SetValue
(
c60159941
.
atkval
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e3
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--attribute light
local
ea
=
Effect
.
CreateEffect
(
c
)
ea
:
SetType
(
EFFECT_TYPE_SINGLE
)
ea
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
ea
:
SetCode
(
EFFECT_ADD_ATTRIBUTE
)
ea
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
ea
:
SetRange
(
LOCATION_MZONE
)
ea
:
SetValue
(
ATTRIBUTE_DARK
)
c
:
RegisterEffect
(
ea
)
end
end
function
c60159941
.
cfilter
(
c
,
tp
,
lc
)
function
c60159941
.
cfilter
(
c
,
tp
,
lc
)
return
c
:
IsCanBeLinkMaterial
(
lc
)
and
c
:
IsFaceup
()
and
c
:
GetSummonLocation
()
&
(
LOCATION_DECK
+
LOCATION_EXTRA
)
~=
0
return
c
:
IsCanBeLinkMaterial
(
lc
)
and
c
:
IsFaceup
()
and
c
:
GetSummonLocation
()
&
(
LOCATION_DECK
+
LOCATION_EXTRA
)
~=
0
...
@@ -73,5 +82,5 @@ function c60159941.linklimit(e,se,sp,st)
...
@@ -73,5 +82,5 @@ function c60159941.linklimit(e,se,sp,st)
return
bit
.
band
(
st
,
SUMMON_TYPE_XYZ
)
==
SUMMON_TYPE_XYZ
return
bit
.
band
(
st
,
SUMMON_TYPE_XYZ
)
==
SUMMON_TYPE_XYZ
end
end
function
c60159941
.
atkval
(
e
,
c
)
function
c60159941
.
atkval
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
nil
,
c
:
GetControler
(),
LOCATION_GRAVE
+
LOCATION_REMOVED
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
nil
)
*
100
return
Duel
.
GetMatchingGroupCount
(
nil
,
c
:
GetControler
(),
LOCATION_GRAVE
+
LOCATION_REMOVED
,
LOCATION_GRAVE
+
LOCATION_REMOVED
,
nil
)
*
100
end
end
\ No newline at end of file
expansions/script/c72411180.lua
View file @
2e732a83
...
@@ -4,16 +4,16 @@ function c72411180.initial_effect(c)
...
@@ -4,16 +4,16 @@ function c72411180.initial_effect(c)
--link summon
--link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
c72411180
.
lcheck
)
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
2
,
c72411180
.
lcheck
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--[[as spellcaster
--
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0:SetProperty(EFFECT_FLAG_
UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABL
E)
e0
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e0:SetRange(
0xff
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
c:RegisterEffect(e0)
]]
c
:
RegisterEffect
(
e0
)
--de
s
--de
f
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
...
...
expansions/script/c72411190.lua
View file @
2e732a83
...
@@ -4,16 +4,16 @@ function c72411190.initial_effect(c)
...
@@ -4,16 +4,16 @@ function c72411190.initial_effect(c)
--link summon
--link summon
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
4
,
c72411190
.
lcheck
)
aux
.
AddLinkProcedure
(
c
,
nil
,
2
,
4
,
c72411190
.
lcheck
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--
[[
--
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0:SetProperty(EFFECT_FLAG_
UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABL
E)
e0
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e0:SetRange(
0xff
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e0
)
c
:
RegisterEffect
(
e0
)
]]
--
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
@@ -82,13 +82,13 @@ function c72411190.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -82,13 +82,13 @@ function c72411190.atkop(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetValue
(
math.ceil
(
atk
/
2
))
e2
:
SetValue
(
math.ceil
(
atk
/
2
))
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e3
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e3
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetValue
(
1
)
e3
:
SetValue
(
1
)
...
...
expansions/script/c72411200.lua
View file @
2e732a83
...
@@ -7,8 +7,8 @@ function c72411200.initial_effect(c)
...
@@ -7,8 +7,8 @@ function c72411200.initial_effect(c)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e7
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e7
:
SetCode
(
EFFECT_ADD_RACE
)
e7
:
SetCode
(
EFFECT_ADD_RACE
)
e7
:
SetProperty
(
EFFECT_FLAG_
UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABL
E
)
e7
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e7
:
SetRange
(
0xff
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetValue
(
RACE_SPELLCASTER
)
e7
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
--des
--des
...
...
expansions/script/c72411440.lua
View file @
2e732a83
...
@@ -4,15 +4,15 @@ function c72411440.initial_effect(c)
...
@@ -4,15 +4,15 @@ function c72411440.initial_effect(c)
--xyz summon
--xyz summon
aux
.
AddXyzProcedure
(
c
,
nil
,
10
,
3
)
aux
.
AddXyzProcedure
(
c
,
nil
,
10
,
3
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--[[ --as spellcaster
--
local
e0
=
Effect
.
CreateEffect
(
c
)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0:SetProperty(EFFECT_FLAG_
UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABL
E)
e0
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e0:SetRange(
0xff
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
c:RegisterEffect(e0)
]]
c
:
RegisterEffect
(
e0
)
--negate
--negate
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
72411440
,
0
))
e2
:
SetDescription
(
aux
.
Stringid
(
72411440
,
0
))
...
...
expansions/script/c72411510.lua
View file @
2e732a83
...
@@ -5,14 +5,14 @@ function c72411510.initial_effect(c)
...
@@ -5,14 +5,14 @@ function c72411510.initial_effect(c)
aux
.
AddXyzProcedure
(
c
,
nil
,
6
,
2
)
aux
.
AddXyzProcedure
(
c
,
nil
,
6
,
2
)
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
--as spellcaster
--as spellcaster
--[[
local e0=Effect.CreateEffect(c)
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0:SetProperty(EFFECT_FLAG_
UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABL
E)
e0
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGAT
E
)
e0:SetRange(
0xff
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
c:RegisterEffect(e0)
]]
c
:
RegisterEffect
(
e0
)
--cannot be targeted
--cannot be targeted
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
expansions/script/c72411610.lua
View file @
2e732a83
--雷格尼斯之主·古蕾娅
--雷格尼斯之主·古蕾娅
function
c72411610
.
initial_effect
(
c
)
function
c72411610
.
initial_effect
(
c
)
--
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e0
:
SetCode
(
EFFECT_ADD_RACE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetValue
(
RACE_SPELLCASTER
)
c
:
RegisterEffect
(
e0
)
--search
--search
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_TOGRAVE
+
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
+
CATEGORY_TOGRAVE
+
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
...
...
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