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
a9457f25
Commit
a9457f25
authored
Jul 24, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove usage of STATUS_ACTIVATED
in contiuous spell/traps, it can be replaced by STATUS_EFFECT_ENABLED
parent
f4fc8334
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
59 additions
and
19 deletions
+59
-19
c16437822.lua
c16437822.lua
+13
-1
c20426907.lua
c20426907.lua
+2
-2
c276357.lua
c276357.lua
+1
-1
c47060347.lua
c47060347.lua
+3
-2
c53569894.lua
c53569894.lua
+3
-2
c73578229.lua
c73578229.lua
+3
-2
c74402414.lua
c74402414.lua
+19
-7
c77859858.lua
c77859858.lua
+14
-1
c92394653.lua
c92394653.lua
+1
-1
No files found.
c16437822.lua
View file @
a9457f25
...
...
@@ -19,6 +19,13 @@ function c16437822.initial_effect(c)
e2
:
SetTarget
(
c16437822
.
rettg
)
e2
:
SetOperation
(
c16437822
.
retop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetOperation
(
c16437822
.
checkop
)
c
:
RegisterEffect
(
e3
)
e2
:
SetLabelObject
(
e3
)
end
function
c16437822
.
filter
(
c
)
return
c
:
GetEquipCount
()
~=
0
and
c
:
GetEquipGroup
():
IsExists
(
Card
.
IsCode
,
1
,
nil
,
75560629
)
...
...
@@ -36,8 +43,13 @@ function c16437822.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
function
c16437822
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsStatus
(
STATUS_LEAVE_CONFIRMED
)
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
c16437822
.
retcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
Get
Handler
():
IsStatus
(
STATUS_ACTIVATED
)
return
e
:
Get
LabelObject
():
GetLabel
()
==
1
end
function
c16437822
.
rettg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToDeck
()
end
...
...
c20426907.lua
View file @
a9457f25
...
...
@@ -39,7 +39,7 @@ end
function
c20426907
.
distg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
local
tc
=
eg
:
GetFirst
()
if
e
:
GetHandler
():
IsStatus
(
STATUS_
ACTIVAT
ED
)
then
if
e
:
GetHandler
():
IsStatus
(
STATUS_
EFFECT_ENABL
ED
)
then
return
tc
:
IsLevelBelow
(
4
)
else
return
tc
:
IsLevelBelow
(
4
)
and
not
tc
:
IsType
(
TYPE_NORMAL
)
...
...
@@ -71,7 +71,7 @@ function c20426907.filter(c,activated)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
5
)
and
(
activated
or
not
c
:
IsType
(
TYPE_NORMAL
))
end
function
c20426907
.
distg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
activated
=
e
:
GetHandler
():
IsStatus
(
STATUS_
ACTIVAT
ED
)
local
activated
=
e
:
GetHandler
():
IsStatus
(
STATUS_
EFFECT_ENABL
ED
)
if
chk
==
0
then
return
eg
:
IsExists
(
c20426907
.
filter
,
1
,
nil
,
activated
)
end
local
g
=
eg
:
Filter
(
c20426907
.
filter
,
nil
,
activated
)
Duel
.
SetTargetCard
(
g
)
...
...
c276357.lua
View file @
a9457f25
...
...
@@ -52,7 +52,7 @@ function c276357.filter(c,tp)
and
c
:
IsControler
(
tp
)
and
c
:
IsType
(
TYPE_SPIRIT
)
end
function
c276357
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c276357
.
filter
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsStatus
(
STATUS_
ACTIVAT
ED
)
return
eg
:
IsExists
(
c276357
.
filter
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsStatus
(
STATUS_
EFFECT_ENABL
ED
)
end
function
c276357
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsControler
(
1
-
tp
)
end
...
...
c47060347.lua
View file @
a9457f25
...
...
@@ -35,13 +35,14 @@ function c47060347.recop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Recover
(
p
,
d
,
REASON_EFFECT
)
end
function
c47060347
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsDisabled
()
then
local
c
=
e
:
GetHandler
()
if
c
:
IsDisabled
()
or
not
c
:
IsStatus
(
STATUS_EFFECT_ENABLED
)
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
c47060347
.
leave
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
e
:
GetLabelObject
():
GetLabel
()
==
0
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsStatus
(
STATUS_ACTIVATED
)
then
if
e
:
GetLabelObject
():
GetLabel
()
==
0
and
c
:
GetPreviousControler
()
==
tp
then
Duel
.
Damage
(
tp
,
3000
,
REASON_EFFECT
)
end
end
c53569894.lua
View file @
a9457f25
...
...
@@ -24,13 +24,14 @@ function c53569894.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
15013468
,
51402177
)
end
function
c53569894
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsDisabled
()
then
local
c
=
e
:
GetHandler
()
if
c
:
IsDisabled
()
or
not
c
:
IsStatus
(
STATUS_EFFECT_ENABLED
)
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
c53569894
.
leave
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
e
:
GetLabelObject
():
GetLabel
()
==
0
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsStatus
(
STATUS_ACTIVATED
)
then
if
e
:
GetLabelObject
():
GetLabel
()
==
0
and
c
:
GetPreviousControler
()
==
tp
then
local
g
=
Duel
.
GetMatchingGroup
(
c53569894
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
,
LOCATION_REMOVED
)
end
...
...
c73578229.lua
View file @
a9457f25
...
...
@@ -61,12 +61,13 @@ function c73578229.adjustop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Readjust
()
end
function
c73578229
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsDisabled
()
then
local
c
=
e
:
GetHandler
()
if
c
:
IsDisabled
()
or
not
c
:
IsStatus
(
STATUS_EFFECT_ENABLED
)
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
c73578229
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetLabelObject
():
GetLabel
()
==
0
and
e
:
GetHandler
():
IsStatus
(
STATUS_ACTIVATED
)
then
if
e
:
GetLabelObject
():
GetLabel
()
==
0
then
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
g
:
GetCount
()
>
0
then
local
ag
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
...
...
c74402414.lua
View file @
a9457f25
...
...
@@ -41,11 +41,17 @@ function c74402414.initial_effect(c)
--damage
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
Set
Condition
(
c74402414
.
damcon
)
e4
:
SetOperation
(
c74402414
.
dam
op
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
_P
)
e4
:
Set
Property
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetOperation
(
c74402414
.
check
op
)
e4
:
SetLabelObject
(
g
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD
)
e5
:
SetOperation
(
c74402414
.
damop
)
e5
:
SetLabelObject
(
e4
)
c
:
RegisterEffect
(
e5
)
end
function
c74402414
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
hg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
...
...
@@ -106,10 +112,16 @@ end
function
c74402414
.
dfilter
(
c
)
return
c
:
GetFlagEffect
(
74402414
)
~=
0
end
function
c74402414
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsStatus
(
STATUS_ACTIVATED
)
function
c74402414
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetLabelObject
():
FilterCount
(
c74402414
.
dfilter
,
nil
)
local
c
=
e
:
GetHandler
()
if
c
:
IsDisabled
()
or
not
c
:
IsStatus
(
STATUS_EFFECT_ENABLED
)
or
ct
==
0
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
c74402414
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetLabelObject
():
FilterCount
(
c74402414
.
dfilter
,
nil
)
Duel
.
Damage
(
tp
,
ct
*
500
,
REASON_EFFECT
)
local
c
=
e
:
GetHandler
()
if
e
:
GetLabelObject
():
GetLabel
()
==
0
and
c
:
GetPreviousControler
()
==
tp
then
Duel
.
Damage
(
tp
,
ct
*
500
,
REASON_EFFECT
)
end
end
c77859858.lua
View file @
a9457f25
...
...
@@ -6,10 +6,17 @@ function c77859858.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
--leave
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetOperation
(
c77859858
.
checkop
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD
)
e3
:
SetOperation
(
c77859858
.
leave
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
--Draw
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -42,9 +49,15 @@ function c77859858.initial_effect(c)
e6
:
SetOperation
(
c77859858
.
costop
)
c
:
RegisterEffect
(
e6
)
end
function
c77859858
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsDisabled
()
or
not
c
:
IsStatus
(
STATUS_EFFECT_ENABLED
)
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
c77859858
.
leave
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
GetPreviousControler
()
==
tp
and
c
:
IsStatus
(
STATUS_ACTIVATED
)
then
if
e
:
GetLabelObject
():
GetLabel
()
==
0
and
c
:
GetPreviousControler
()
==
tp
then
Duel
.
Damage
(
tp
,
3000
,
REASON_EFFECT
)
end
end
...
...
c92394653.lua
View file @
a9457f25
...
...
@@ -31,7 +31,7 @@ function c92394653.filter(c,tp)
and
c
:
IsControler
(
tp
)
and
c
:
IsType
(
TYPE_SPIRIT
)
end
function
c92394653
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c92394653
.
filter
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsStatus
(
STATUS_
ACTIVAT
ED
)
return
eg
:
IsExists
(
c92394653
.
filter
,
1
,
nil
,
tp
)
and
e
:
GetHandler
():
IsStatus
(
STATUS_
EFFECT_ENABL
ED
)
end
function
c92394653
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
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