Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
93471152
Commit
93471152
authored
Jan 23, 2022
by
salix5
Committed by
GitHub
Jan 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add EFFECT_SET_BASE_ATTACK_FINAL (#1789)
parent
1215d102
Changes
52
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
143 additions
and
140 deletions
+143
-140
c15066114.lua
c15066114.lua
+0
-2
c15629801.lua
c15629801.lua
+2
-2
c1828513.lua
c1828513.lua
+1
-1
c19636995.lua
c19636995.lua
+4
-3
c22996376.lua
c22996376.lua
+0
-2
c23898021.lua
c23898021.lua
+0
-2
c28423537.lua
c28423537.lua
+0
-2
c29303524.lua
c29303524.lua
+0
-2
c30312361.lua
c30312361.lua
+8
-5
c32298781.lua
c32298781.lua
+9
-7
c32752319.lua
c32752319.lua
+0
-1
c33911264.lua
c33911264.lua
+0
-2
c36029076.lua
c36029076.lua
+0
-2
c38030232.lua
c38030232.lua
+1
-2
c38525760.lua
c38525760.lua
+1
-3
c3897065.lua
c3897065.lua
+2
-2
c4022819.lua
c4022819.lua
+1
-3
c4068622.lua
c4068622.lua
+31
-5
c42155488.lua
c42155488.lua
+1
-3
c43530283.lua
c43530283.lua
+2
-2
c47387961.lua
c47387961.lua
+3
-2
c51126152.lua
c51126152.lua
+1
-3
c51632798.lua
c51632798.lua
+1
-3
c55713623.lua
c55713623.lua
+3
-2
c5703682.lua
c5703682.lua
+8
-8
c58270977.lua
c58270977.lua
+4
-2
c60025883.lua
c60025883.lua
+2
-2
c62325062.lua
c62325062.lua
+1
-1
c63442604.lua
c63442604.lua
+2
-2
c6442944.lua
c6442944.lua
+4
-8
c64599569.lua
c64599569.lua
+1
-0
c65384019.lua
c65384019.lua
+1
-1
c67136033.lua
c67136033.lua
+0
-2
c69838761.lua
c69838761.lua
+0
-2
c6990577.lua
c6990577.lua
+6
-4
c70899775.lua
c70899775.lua
+1
-1
c71278040.lua
c71278040.lua
+4
-4
c71544954.lua
c71544954.lua
+1
-3
c74003290.lua
c74003290.lua
+3
-2
c75198893.lua
c75198893.lua
+2
-2
c7841921.lua
c7841921.lua
+0
-2
c78651105.lua
c78651105.lua
+1
-3
c79229522.lua
c79229522.lua
+2
-1
c81325903.lua
c81325903.lua
+2
-2
c8198620.lua
c8198620.lua
+5
-5
c82377606.lua
c82377606.lua
+3
-2
c83274244.lua
c83274244.lua
+1
-3
c86271510.lua
c86271510.lua
+1
-3
c86605184.lua
c86605184.lua
+2
-2
c91392974.lua
c91392974.lua
+6
-4
c94538053.lua
c94538053.lua
+6
-4
c95685352.lua
c95685352.lua
+3
-2
No files found.
c15066114.lua
View file @
93471152
...
...
@@ -33,9 +33,7 @@ end
function
c15066114
.
ntop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
1300
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
...
...
c15629801.lua
View file @
93471152
...
...
@@ -31,12 +31,12 @@ function c15629801.activate(e,tp,eg,ep,ev,re,r,rp)
local
token
=
Duel
.
CreateToken
(
tp
,
15629802
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_
BASE_
ATTACK
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
tc
:
GetAttack
())
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
)
token
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_
BASE_
DEFENSE
)
e2
:
SetCode
(
EFFECT_SET_DEFENSE
)
e2
:
SetValue
(
tc
:
GetDefense
())
token
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
...
...
c1828513.lua
View file @
93471152
...
...
@@ -37,7 +37,7 @@ function c1828513.operation(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetValue
(
2000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
...
...
c19636995.lua
View file @
93471152
...
...
@@ -70,11 +70,12 @@ end
function
c19636995
.
datop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
batk
=
c
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
math.ceil
(
c
:
GetBaseAttack
()
/
2
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetValue
(
math.ceil
(
batk
/
2
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_
DISABLE
+
RESET_
PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c22996376.lua
View file @
93471152
...
...
@@ -35,8 +35,6 @@ function c22996376.otop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
2000
)
...
...
c23898021.lua
View file @
93471152
...
...
@@ -24,8 +24,6 @@ function c23898021.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1000
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
end
...
...
c28423537.lua
View file @
93471152
...
...
@@ -39,8 +39,6 @@ function c28423537.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1500
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
...
...
c29303524.lua
View file @
93471152
...
...
@@ -34,8 +34,6 @@ function c29303524.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1500
)
...
...
c30312361.lua
View file @
93471152
--ファントム・オブ・カオス
local
s
,
id
,
o
=
GetID
()
function
c30312361
.
initial_effect
(
c
)
--copy
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -37,6 +38,7 @@ function c30312361.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
~=
1
then
return
end
--copy name, base atk
local
code
=
tc
:
GetOriginalCode
()
local
ba
=
tc
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -51,25 +53,26 @@ function c30312361.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e2
:
SetValue
(
ba
)
c
:
RegisterEffect
(
e2
)
--copy effect
local
cid
=
c
:
CopyEffect
(
code
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
30312361
,
1
)
)
e3
:
SetDescription
(
1193
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetLabel
(
cid
)
e3
:
SetLabelObject
(
e2
)
e3
:
SetOperation
(
c30312361
.
rstop
)
e3
:
SetOperation
(
s
.
rstop
)
c
:
RegisterEffect
(
e3
)
end
end
function
c30312361
.
rstop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
rstop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
cid
=
e
:
GetLabel
()
c
:
ResetEffect
(
cid
,
RESET_COPY
)
...
...
c32298781.lua
View file @
93471152
...
...
@@ -11,7 +11,7 @@ function c32298781.initial_effect(c)
end
function
c32298781
.
filter
(
c
)
local
tpe
=
c
:
GetType
()
return
c
:
IsFaceup
()
and
bit
.
band
(
tpe
,
TYPE_NORMAL
)
~=
0
and
bit
.
band
(
tpe
,
TYPE_TOKEN
)
==
0
and
c
:
IsLevel
(
1
)
return
c
:
IsFaceup
()
and
tpe
&
TYPE_NORMAL
~=
0
and
tpe
&
TYPE_TOKEN
==
0
and
c
:
IsLevel
(
1
)
end
function
c32298781
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c32298781
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
@@ -20,17 +20,19 @@ function c32298781.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
c32298781
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
local
batk
=
tc
:
GetBaseAttack
()
local
bdef
=
tc
:
GetBaseDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
tc
:
GetBaseAttack
()
+
2000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetValue
(
batk
+
2000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e2
:
SetValue
(
tc
:
GetBaseDefense
()
+
2000
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
_FINAL
)
e2
:
SetValue
(
bdef
+
+
2000
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
end
...
...
c32752319.lua
View file @
93471152
...
...
@@ -21,7 +21,6 @@ function c32752319.atkop(e,tp,eg,ep,ev,re,r,rp)
local
atk
=
0
while
tc
do
local
catk
=
tc
:
GetBaseAttack
()
if
catk
<
0
then
catk
=
0
end
atk
=
atk
+
catk
tc
=
g
:
GetNext
()
end
...
...
c33911264.lua
View file @
93471152
...
...
@@ -30,8 +30,6 @@ end
function
c33911264
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
400
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
...
...
c36029076.lua
View file @
93471152
...
...
@@ -21,8 +21,6 @@ function c36029076.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1300
)
...
...
c38030232.lua
View file @
93471152
...
...
@@ -64,8 +64,7 @@ function c38030232.tkop(e,tp,eg,ep,ev,re,r,rp)
local
token
=
Duel
.
CreateToken
(
tp
,
38030233
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
)
token
:
RegisterEffect
(
e1
)
...
...
c38525760.lua
View file @
93471152
...
...
@@ -37,11 +37,9 @@ function c38525760.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1000
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
end
function
c38525760
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c3897065.lua
View file @
93471152
...
...
@@ -76,8 +76,8 @@ function c3897065.atkop(e,tp,eg,ep,ev,re,r,rp)
local
atk
=
c
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK_FINAL
)
e1
:
SetValue
(
math.ceil
(
atk
/
2
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
c
:
RegisterEffect
(
e1
)
end
c4022819.lua
View file @
93471152
...
...
@@ -37,11 +37,9 @@ function c4022819.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1000
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
end
function
c4022819
.
lvfilter
(
c
)
...
...
c4068622.lua
View file @
93471152
...
...
@@ -66,23 +66,49 @@ function c4068622.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
g
:
GetFirst
()
local
c
=
e
:
GetHandler
()
if
tc
and
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
and
Duel
.
Remove
(
tc
,
POS_FACEUP
,
REASON_EFFECT
)
>
0
then
--copy name, base atk
local
code
=
tc
:
GetOriginalCode
()
local
ba
=
tc
:
GetBaseAttack
()
local
reset_flag
=
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
c
:
CopyEffect
(
code
,
reset_flag
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
reset_flag
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EFFECT_CHANGE_CODE
)
e1
:
SetValue
(
code
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
reset_flag
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetLabelObject
(
e1
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK_FINAL
)
e2
:
SetValue
(
ba
)
c
:
RegisterEffect
(
e2
)
--copy effect
local
cid
=
c
:
CopyEffect
(
code
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
1193
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetLabel
(
cid
)
e3
:
SetLabelObject
(
e2
)
e3
:
SetOperation
(
s
.
rstop
)
c
:
RegisterEffect
(
e3
)
end
end
function
s
.
rstop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
cid
=
e
:
GetLabel
()
c
:
ResetEffect
(
cid
,
RESET_COPY
)
c
:
ResetEffect
(
RESET_DISABLE
,
RESET_EVENT
)
local
e2
=
e
:
GetLabelObject
()
local
e1
=
e2
:
GetLabelObject
()
e1
:
Reset
()
e2
:
Reset
()
Duel
.
HintSelection
(
Group
.
FromCards
(
c
))
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
c42155488.lua
View file @
93471152
...
...
@@ -27,11 +27,9 @@ function c42155488.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1100
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
...
...
c43530283.lua
View file @
93471152
...
...
@@ -17,12 +17,12 @@ function c43530283.adop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetValue
(
c43530283
.
atkval
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
_FINAL
)
e2
:
SetValue
(
c43530283
.
defval
)
c
:
RegisterEffect
(
e2
)
if
Duel
.
GetTurnPlayer
()
==
tp
then
...
...
c47387961.lua
View file @
93471152
...
...
@@ -29,6 +29,7 @@ function c47387961.operation(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
local
atk
=
tc
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
...
...
@@ -37,8 +38,8 @@ function c47387961.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetValue
(
tc
:
GetAttack
()
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e2
:
SetValue
(
atk
)
c
:
RegisterEffect
(
e2
)
local
cid
=
c
:
CopyEffect
(
tc
:
GetOriginalCode
(),
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
1
)
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
c51126152.lua
View file @
93471152
...
...
@@ -25,10 +25,8 @@ function c51126152.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
end
c51632798.lua
View file @
93471152
...
...
@@ -21,11 +21,9 @@ function c51632798.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1400
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
...
...
c55713623.lua
View file @
93471152
...
...
@@ -21,11 +21,12 @@ end
function
c55713623
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
batk
=
tc
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
math.ceil
(
tc
:
GetBaseAttack
()
/
2
))
e1
:
SetValue
(
math.ceil
(
batk
/
2
))
tc
:
RegisterEffect
(
e1
)
end
end
c5703682.lua
View file @
93471152
...
...
@@ -20,17 +20,17 @@ function c5703682.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
c5703682
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
while
tc
do
local
batk
=
tc
:
GetBaseAttack
()
local
bdef
=
tc
:
GetBaseDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
tc
:
GetBaseAttack
()
+
1000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetValue
(
batk
+
1000
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e2
:
SetValue
(
tc
:
GetBaseDefense
()
+
1000
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE_FINAL
)
e2
:
SetValue
(
bdef
+
1000
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
end
...
...
c58270977.lua
View file @
93471152
...
...
@@ -47,11 +47,12 @@ function c58270977.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c58270977
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
and
e
:
GetLabel
()
==
1
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
and
e
:
GetLabel
()
==
1
then
local
batk
=
tc
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
tc
:
GetBaseAttack
()
*
2
)
e1
:
SetValue
(
batk
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
...
...
@@ -70,4 +71,5 @@ function c58270977.activate(e,tp,eg,ep,ev,re,r,rp)
gc
=
g
:
GetNext
()
end
end
Duel
.
SpecialSummonComplete
()
end
c60025883.lua
View file @
93471152
...
...
@@ -71,13 +71,13 @@ function c60025883.spop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
,
zone
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_
BASE_
ATTACK
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
)
token
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_
BASE_
DEFENSE
)
e2
:
SetCode
(
EFFECT_SET_DEFENSE
)
e2
:
SetValue
(
def
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
)
token
:
RegisterEffect
(
e2
)
...
...
c62325062.lua
View file @
93471152
...
...
@@ -32,7 +32,7 @@ function c62325062.activate(e,tp,eg,ep,ev,re,r,rp)
local
atk
=
math.ceil
(
tc
:
GetBaseAttack
()
/
2
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
...
...
c63442604.lua
View file @
93471152
...
...
@@ -37,12 +37,12 @@ function c63442604.activate(e,tp,eg,ep,ev,re,r,rp)
local
token
=
Duel
.
CreateToken
(
tp
,
63442605
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_
BASE_
ATTACK
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
tc
:
GetAttack
())
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
)
token
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_
BASE_
DEFENSE
)
e2
:
SetCode
(
EFFECT_SET_DEFENSE
)
e2
:
SetValue
(
tc
:
GetDefense
())
token
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
...
...
c6442944.lua
View file @
93471152
...
...
@@ -52,13 +52,13 @@ function c6442944.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
and
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
_FINAL
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENSE
_FINAL
)
tc
:
RegisterEffect
(
e2
,
true
)
e2
:
SetCode
(
EFFECT_SET_DEFENSE
)
tc
:
RegisterEffect
(
e2
)
end
Duel
.
SpecialSummonComplete
()
end
...
...
@@ -67,16 +67,12 @@ function c6442944.lvop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
4
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
0
)
e2
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e2
)
...
...
c64599569.lua
View file @
93471152
...
...
@@ -40,6 +40,7 @@ function c64599569.sucop(e,tp,eg,ep,ev,re,r,rp)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_EXTRA_ATTACK_MONSTER
)
e3
:
SetValue
(
c
:
GetMaterialCount
()
-
1
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e3
)
end
function
c64599569
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c65384019.lua
View file @
93471152
...
...
@@ -27,7 +27,7 @@ function c65384019.activate(e,tp,eg,ep,ev,re,r,rp)
if
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
0
)
tc
:
RegisterEffect
(
e1
)
...
...
c67136033.lua
View file @
93471152
...
...
@@ -34,8 +34,6 @@ function c67136033.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1300
)
...
...
c69838761.lua
View file @
93471152
...
...
@@ -34,8 +34,6 @@ function c69838761.ntop(e,tp,eg,ep,ev,re,r,rp,c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
1800
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TOFIELD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
...
...
c6990577.lua
View file @
93471152
...
...
@@ -40,15 +40,17 @@ end
function
c6990577
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
batk
=
c
:
GetBaseAttack
()
local
bdef
=
c
:
GetBaseDefense
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
c
:
GetBaseAttack
()
*
2
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetValue
(
batk
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
,
2
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e2
:
SetValue
(
c
:
GetBaseDefense
()
*
2
)
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
_FINAL
)
e2
:
SetValue
(
bdef
*
2
)
c
:
RegisterEffect
(
e2
)
end
end
...
...
c70899775.lua
View file @
93471152
...
...
@@ -27,7 +27,7 @@ function c70899775.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterFlagEffect
(
70899775
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetValue
(
100
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
...
...
c71278040.lua
View file @
93471152
...
...
@@ -42,21 +42,21 @@ function c71278040.lvcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c71278040
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
batk
=
c
:
GetBaseAttack
()
local
bdef
=
c
:
GetBaseDefense
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
4
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetValue
(
c
:
GetBaseAttack
()
/
2
)
e2
:
SetValue
(
math.ceil
(
batk
/
2
)
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e3
:
SetValue
(
c
:
GetBaseDefense
()
/
2
)
e3
:
SetValue
(
math.ceil
(
bdef
/
2
)
)
c
:
RegisterEffect
(
e3
)
end
function
c71278040
.
cfilter1
(
c
,
tp
)
...
...
c71544954.lua
View file @
93471152
...
...
@@ -34,11 +34,9 @@ function c71544954.spop(e,tp,eg,ep,ev,re,r,rp,c)
local
val
=
g
:
GetCount
()
*
700
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
val
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
...
...
c74003290.lua
View file @
93471152
...
...
@@ -48,9 +48,10 @@ function c74003290.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetValue
(
RESET_TURN_SET
)
tc
:
RegisterEffect
(
e2
)
Duel
.
AdjustInstantly
(
tc
)
local
batk
=
tc
:
GetBaseAttack
()
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e3
:
SetValue
(
math.ceil
(
tc
:
GetBaseAttack
()
/
2
))
e3
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e3
:
SetValue
(
math.ceil
(
batk
/
2
))
tc
:
RegisterEffect
(
e3
)
end
end
...
...
c75198893.lua
View file @
93471152
...
...
@@ -38,11 +38,11 @@ function c75198893.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_
BASE_ATTACK
)
e2
:
SetCode
(
EFFECT_SET_
ATTACK_FINAL
)
e2
:
SetValue
(
ba
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_SET_
BASE_DEFENSE
)
e3
:
SetCode
(
EFFECT_SET_
DEFENSE_FINAL
)
e3
:
SetValue
(
bd
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e1
:
Clone
()
...
...
c7841921.lua
View file @
93471152
...
...
@@ -37,8 +37,6 @@ function c7841921.atkop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
c7841921
.
atkcon
)
e1
:
SetValue
(
1900
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
...
...
c78651105.lua
View file @
93471152
...
...
@@ -39,11 +39,9 @@ function c78651105.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1900
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
end
function
c78651105
.
ttcon
(
e
,
c
,
minc
)
...
...
c79229522.lua
View file @
93471152
...
...
@@ -33,11 +33,12 @@ function c79229522.sprop(c)
return
function
(
g
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
--spsummon condition
local
ct
=
g
:
GetCount
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetValue
(
g
:
GetCount
()
*
1000
)
e1
:
SetValue
(
ct
*
1000
)
c
:
RegisterEffect
(
e1
)
end
end
c81325903.lua
View file @
93471152
...
...
@@ -31,13 +31,13 @@ function c81325903.activate(e,tp,eg,ep,ev,re,r,rp)
local
atk2
=
tc2
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetValue
(
atk2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc1
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e2
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e2
:
SetValue
(
atk1
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc2
:
RegisterEffect
(
e2
)
...
...
c8198620.lua
View file @
93471152
...
...
@@ -42,8 +42,7 @@ function c8198620.atop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
if
bc
:
IsRelateToBattle
()
and
bc
:
IsFaceup
()
then
local
atk
=
bc
:
GetBaseAttack
()
local
lv
=
bc
:
GetOriginalLevel
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
...
...
@@ -53,10 +52,11 @@ function c8198620.atop(e,tp,eg,ep,ev,re,r,rp)
if
lv
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
8198621
,
0
,
TYPES_TOKEN_MONSTER
,
-
2
,
0
,
0
,
RACE_ZOMBIE
,
ATTRIBUTE_DARK
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
8198621
)
Duel
.
SpecialSummonStep
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
atk
=
bc
:
GetBaseAttack
()
local
lv
=
bc
:
GetOriginalLevel
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_
BASE_
ATTACK
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
token
:
RegisterEffect
(
e1
)
...
...
@@ -64,7 +64,7 @@ function c8198620.atop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
e2
:
SetValue
(
lv
)
token
:
RegisterEffect
(
e2
)
Duel
.
SpecialSummon
Complete
(
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
...
...
c82377606.lua
View file @
93471152
...
...
@@ -28,10 +28,11 @@ end
function
c82377606
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
batk
=
tc
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_
BASE_ATTACK
)
e1
:
SetValue
(
tc
:
GetTextAttack
()
*
2
)
e1
:
SetCode
(
EFFECT_SET_
ATTACK_FINAL
)
e1
:
SetValue
(
batk
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
...
...
c83274244.lua
View file @
93471152
...
...
@@ -26,11 +26,9 @@ function c83274244.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--change base attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
1800
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
end
function
c83274244
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c86271510.lua
View file @
93471152
...
...
@@ -30,9 +30,7 @@ function c86271510.operation(e,tp,eg,ep,ev,re,r,rp)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK_FINAL
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
c
:
RegisterEffect
(
e1
)
...
...
c86605184.lua
View file @
93471152
...
...
@@ -59,9 +59,9 @@ function c86605184.disop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
NegateAttack
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK_FINAL
)
e1
:
SetValue
(
0
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c91392974.lua
View file @
93471152
...
...
@@ -63,16 +63,18 @@ function c91392974.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
Duel
.
HintSelection
(
g2
)
local
tc
=
g2
:
GetFirst
()
local
batk
=
tc
:
GetBaseAttack
()
local
bdef
=
tc
:
GetBaseDefense
()
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK_FINAL
)
e1
:
SetValue
(
math.ceil
(
batk
/
2
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
math.ceil
(
tc
:
GetBaseAttack
()
/
2
))
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE_FINAL
)
e2
:
SetValue
(
math.ceil
(
bdef
/
2
))
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
SetValue
(
math.ceil
(
tc
:
GetBaseDefense
()
/
2
))
tc
:
RegisterEffect
(
e2
)
end
end
c94538053.lua
View file @
93471152
...
...
@@ -30,15 +30,17 @@ end
function
c94538053
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToBattle
()
and
c
:
IsFaceup
()
then
local
batk
=
c
:
GetBaseAttack
()
local
bdef
=
c
:
GetBaseDefense
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
math.ceil
(
c
:
GetBaseAttack
()
/
2
))
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
_FINAL
)
e1
:
SetValue
(
math.ceil
(
batk
/
2
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_SELF_TURN
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
)
e2
:
SetValue
(
math.ceil
(
c
:
GetBaseDefense
()
/
2
))
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE
_FINAL
)
e2
:
SetValue
(
math.ceil
(
bdef
/
2
))
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EFFECT_CHANGE_LEVEL
)
...
...
c95685352.lua
View file @
93471152
...
...
@@ -51,11 +51,12 @@ function c95685352.atkop1(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
local
batk
=
tc
:
GetBaseAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK_FINAL
)
e1
:
SetValue
(
math.ceil
(
batk
/
2
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
math.ceil
(
tc
:
GetBaseAttack
()
/
2
))
tc
:
RegisterEffect
(
e1
)
end
end
...
...
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