Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
八宫一月
ygopro-scripts
Commits
cccb9e54
Commit
cccb9e54
authored
Jun 16, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
partly revert
56916a9f
close #1189
parent
f6be3a1c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
59 deletions
+63
-59
c25542642.lua
c25542642.lua
+12
-10
c29267084.lua
c29267084.lua
+18
-15
c36975314.lua
c36975314.lua
+7
-11
c50078509.lua
c50078509.lua
+12
-11
c54704216.lua
c54704216.lua
+14
-12
No files found.
c25542642.lua
View file @
cccb9e54
...
@@ -10,6 +10,17 @@ function c25542642.initial_effect(c)
...
@@ -10,6 +10,17 @@ function c25542642.initial_effect(c)
e1
:
SetTarget
(
c25542642
.
target
)
e1
:
SetTarget
(
c25542642
.
target
)
e1
:
SetOperation
(
c25542642
.
tgop
)
e1
:
SetOperation
(
c25542642
.
tgop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cannot attack/disable
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
aux
.
ctg
)
c
:
RegisterEffect
(
e3
)
local
e5
=
e3
:
Clone
()
e5
:
SetCode
(
EFFECT_DISABLE
)
c
:
RegisterEffect
(
e5
)
--cannot be battle target
--cannot be battle target
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -55,20 +66,11 @@ function c25542642.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,20 +66,11 @@ function c25542642.tgop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
c
:
SetCardTarget
(
tc
)
--cannot attack/disable
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_DISABLE
)
tc
:
RegisterEffect
(
e2
,
true
)
end
end
end
end
function
c25542642
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25542642
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
then
return
false
end
local
tc
=
c
:
GetFirstCardTarget
()
local
tc
=
c
:
GetFirstCardTarget
()
return
tc
and
eg
:
IsContains
(
tc
)
return
tc
and
eg
:
IsContains
(
tc
)
end
end
...
...
c29267084.lua
View file @
cccb9e54
...
@@ -11,6 +11,23 @@ function c29267084.initial_effect(c)
...
@@ -11,6 +11,23 @@ function c29267084.initial_effect(c)
e1
:
SetTarget
(
c29267084
.
target
)
e1
:
SetTarget
(
c29267084
.
target
)
e1
:
SetOperation
(
c29267084
.
operation
)
e1
:
SetOperation
(
c29267084
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cannot attack, atk down
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
ctg
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetValue
(
-
700
)
c
:
RegisterEffect
(
e3
)
--cannot change position
local
e4
=
e2
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
e4
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
c
:
RegisterEffect
(
e4
)
--Destroy
--Destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
...
@@ -34,25 +51,11 @@ function c29267084.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,25 +51,11 @@ function c29267084.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
c
:
SetCardTarget
(
tc
)
--cannot attack, atk down
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e2
,
true
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e3
:
SetValue
(
-
700
)
tc
:
RegisterEffect
(
e3
,
true
)
--cannot change position
local
e4
=
e2
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
tc
:
RegisterEffect
(
e4
,
true
)
end
end
end
end
function
c29267084
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c29267084
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
then
return
false
end
local
tc
=
c
:
GetFirstCardTarget
()
local
tc
=
c
:
GetFirstCardTarget
()
return
tc
and
eg
:
IsContains
(
tc
)
return
tc
and
eg
:
IsContains
(
tc
)
end
end
...
...
c36975314.lua
View file @
cccb9e54
...
@@ -36,7 +36,7 @@ function c36975314.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,7 +36,7 @@ function c36975314.operation(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_CONTROL
)
e1
:
SetCode
(
EFFECT_SET_CONTROL
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
+
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetValue
(
c36975314
.
ctval
)
e1
:
SetValue
(
c36975314
.
ctval
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetLabelObject
(
e
)
e1
:
SetLabelObject
(
e
)
...
@@ -44,15 +44,15 @@ function c36975314.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,15 +44,15 @@ function c36975314.operation(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
,
true
)
tc
:
RegisterEffect
(
e1
,
true
)
--cannot attack, trigger
--cannot attack, trigger
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_
SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_
FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
Set
Property
(
EFFECT_FLAG_OWNER_RELAT
E
)
e2
:
Set
Range
(
LOCATION_SZON
E
)
e2
:
Set
Condition
(
c36975314
.
con2
)
e2
:
Set
TargetRange
(
LOCATION_MZONE
,
0
)
e2
:
Set
Reset
(
RESET_EVENT
+
RESETS_STANDARD
)
e2
:
Set
Target
(
aux
.
ctg
)
tc
:
RegisterEffect
(
e2
,
true
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e3
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
tc
:
RegisterEffect
(
e3
,
true
)
c
:
RegisterEffect
(
e3
)
end
end
end
end
function
c36975314
.
con
(
e
)
function
c36975314
.
con
(
e
)
...
@@ -64,10 +64,6 @@ end
...
@@ -64,10 +64,6 @@ end
function
c36975314
.
ctval
(
e
,
c
)
function
c36975314
.
ctval
(
e
,
c
)
return
e
:
GetOwnerPlayer
()
return
e
:
GetOwnerPlayer
()
end
end
function
c36975314
.
con2
(
e
)
local
tc
=
e
:
GetHandler
()
return
tc
:
IsControler
(
e
:
GetOwnerPlayer
())
end
function
c36975314
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36975314
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
local
tc
=
e
:
GetHandler
():
GetFirstCardTarget
()
return
tc
and
eg
:
IsContains
(
tc
)
return
tc
and
eg
:
IsContains
(
tc
)
...
...
c50078509.lua
View file @
cccb9e54
...
@@ -10,6 +10,18 @@ function c50078509.initial_effect(c)
...
@@ -10,6 +10,18 @@ function c50078509.initial_effect(c)
e1
:
SetTarget
(
c50078509
.
target
)
e1
:
SetTarget
(
c50078509
.
target
)
e1
:
SetOperation
(
c50078509
.
tgop
)
e1
:
SetOperation
(
c50078509
.
tgop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--disable
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTarget
(
aux
.
ctg
)
c
:
RegisterEffect
(
e3
)
--cannot attack
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
c
:
RegisterEffect
(
e4
)
--Destroy
--Destroy
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
...
@@ -34,17 +46,6 @@ function c50078509.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,17 +46,6 @@ function c50078509.tgop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
c
:
SetCardTarget
(
tc
)
--disable
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
,
true
)
--cannot attack
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
tc
:
RegisterEffect
(
e2
,
true
)
end
end
end
end
function
c50078509
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50078509
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c54704216.lua
View file @
cccb9e54
...
@@ -10,6 +10,19 @@ function c54704216.initial_effect(c)
...
@@ -10,6 +10,19 @@ function c54704216.initial_effect(c)
e1
:
SetTarget
(
c54704216
.
target
)
e1
:
SetTarget
(
c54704216
.
target
)
e1
:
SetOperation
(
c54704216
.
operation
)
e1
:
SetOperation
(
c54704216
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cannot attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
ctg
)
c
:
RegisterEffect
(
e2
)
--cannot change position
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
c
:
RegisterEffect
(
e3
)
--damage
--damage
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
54704216
,
0
))
e4
:
SetDescription
(
aux
.
Stringid
(
54704216
,
0
))
...
@@ -42,22 +55,11 @@ function c54704216.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,22 +55,11 @@ function c54704216.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
c
:
SetCardTarget
(
tc
)
c
:
SetCardTarget
(
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
tc
:
RegisterEffect
(
e2
)
end
end
end
end
function
c54704216
.
efftg
(
e
,
c
)
return
e
:
GetHandler
():
IsRelateToCard
(
c
)
end
function
c54704216
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c54704216
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
then
return
false
end
local
tc
=
c
:
GetFirstCardTarget
()
local
tc
=
c
:
GetFirstCardTarget
()
return
tc
and
eg
:
IsContains
(
tc
)
return
tc
and
eg
:
IsContains
(
tc
)
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