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
bc1d1a1b
Commit
bc1d1a1b
authored
Mar 16, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use EVENT_LEAVE_FIELD
parent
069ee66a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
c73289035.lua
c73289035.lua
+2
-8
No files found.
c73289035.lua
View file @
bc1d1a1b
...
@@ -19,18 +19,12 @@ function c73289035.initial_effect(c)
...
@@ -19,18 +19,12 @@ function c73289035.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_
TO_GRAVE
)
e2
:
SetCode
(
EVENT_
LEAVE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCondition
(
c73289035
.
spcon
)
e2
:
SetCondition
(
c73289035
.
spcon
)
e2
:
SetTarget
(
c73289035
.
sptg
)
e2
:
SetTarget
(
c73289035
.
sptg
)
e2
:
SetOperation
(
c73289035
.
spop
)
e2
:
SetOperation
(
c73289035
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_REMOVE
)
c
:
RegisterEffect
(
e3
)
local
e4
=
e2
:
Clone
()
e4
:
SetCode
(
EVENT_TO_DECK
)
c
:
RegisterEffect
(
e4
)
end
end
function
c73289035
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c73289035
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
@@ -52,7 +46,7 @@ function c73289035.spcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -52,7 +46,7 @@ function c73289035.spcon(e,tp,eg,ep,ev,re,r,rp)
local
ct
=
e
:
GetHandler
():
GetOverlayCount
()
local
ct
=
e
:
GetHandler
():
GetOverlayCount
()
e
:
SetLabel
(
ct
)
e
:
SetLabel
(
ct
)
return
rp
==
1
-
tp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
ct
>
0
return
rp
==
1
-
tp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
ct
>
0
and
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
e
:
GetHandler
():
IsPreviousPosition
(
POS_FACEUP
)
end
end
function
c73289035
.
spfilter
(
c
,
e
,
tp
)
function
c73289035
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevel
(
4
)
and
c
:
IsSetCard
(
0x88
)
and
c
:
IsRace
(
RACE_BEASTWARRIOR
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsLevel
(
4
)
and
c
:
IsSetCard
(
0x88
)
and
c
:
IsRace
(
RACE_BEASTWARRIOR
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
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