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
8afcaa9b
Commit
8afcaa9b
authored
May 10, 2021
by
Chrono-Genex
Committed by
GitHub
May 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 機巧伝-神使記紀図 (#1638)
parent
c7c7f353
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
c24793135.lua
c24793135.lua
+8
-5
No files found.
c24793135.lua
View file @
8afcaa9b
...
@@ -30,11 +30,12 @@ function c24793135.initial_effect(c)
...
@@ -30,11 +30,12 @@ function c24793135.initial_effect(c)
--act limit
--act limit
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
)
e5
:
SetCode
(
EFFECT_CANNOT_TRIGGER
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetCondition
(
c24793135
.
actlimitcon
)
e5
:
SetCondition
(
c24793135
.
actlimitcon
)
e5
:
Set
Target
(
c24793135
.
actlimittg
)
e5
:
Set
Value
(
c24793135
.
actlimit
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c24793135
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c24793135
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
@@ -74,6 +75,8 @@ end
...
@@ -74,6 +75,8 @@ end
function
c24793135
.
actlimitcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24793135
.
actlimitcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetCounter
(
0x5d
)
>=
10
return
e
:
GetHandler
():
GetCounter
(
0x5d
)
>=
10
end
end
function
c24793135
.
actlimittg
(
e
,
c
)
function
c24793135
.
actlimit
(
e
,
re
,
tp
)
return
c
:
IsDefenseAbove
(
0
)
and
not
c
:
IsDefense
(
c
:
GetAttack
())
local
loc
=
re
:
GetActivateLocation
()
local
rc
=
re
:
GetHandler
()
return
loc
==
LOCATION_MZONE
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
rc
:
IsDefenseAbove
(
0
)
and
not
rc
:
IsDefense
(
rc
:
GetAttack
())
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