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
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
Vee4
ygopro-scripts-888
Commits
ce212171
Commit
ce212171
authored
Sep 28, 2022
by
Chrono-Genex
Committed by
GitHub
Sep 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Effect.SetCostCheck (#1934)
parent
8c2339e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
c13093792.lua
c13093792.lua
+2
-0
c49398568.lua
c49398568.lua
+5
-1
No files found.
c13093792.lua
View file @
ce212171
...
...
@@ -47,12 +47,14 @@ function c13093792.spelltg(e,tp,eg,ep,ev,re,r,rp,chk)
local
ae
=
e
:
GetHandler
():
GetActivateEffect
()
local
ftg
=
ae
:
GetTarget
()
if
chk
==
0
then
e
:
SetCostCheck
(
false
)
return
not
ftg
or
ftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
ae
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
else
e
:
SetProperty
(
0
)
end
if
ftg
then
e
:
SetCostCheck
(
false
)
ftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
end
...
...
c49398568.lua
View file @
ce212171
...
...
@@ -25,11 +25,15 @@ end
function
c49398568
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
ftg
=
re
:
GetTarget
()
if
chkc
then
return
ftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chk
==
0
then
return
not
ftg
or
ftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
e
:
SetCostCheck
(
false
)
return
not
ftg
or
ftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
end
if
ftg
then
e
:
SetCostCheck
(
false
)
ftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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