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
nanahira
ygopro-scripts
Commits
bfa85840
Commit
bfa85840
authored
Sep 16, 2025
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/patch-sponce-hint' into develop
parents
b9d30365
b0be3ea6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
utility.lua
utility.lua
+34
-0
No files found.
utility.lua
View file @
bfa85840
...
...
@@ -1982,3 +1982,37 @@ function Auxiliary.MonsterEffectPropertyFilter(flag)
return
e
:
IsHasProperty
(
flag
)
and
not
e
:
IsHasRange
(
LOCATION_PZONE
)
end
end
-- patch for Card.SetSPSummonOnce for hints
function
Auxiliary
.
SPSummonOnceHintCondition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsGlobalFlag
(
GLOBALFLAG_SPSUMMON_ONCE
)
end
function
Auxiliary
.
SPSummonOnceHintTarget
(
e
,
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
not
c
:
CheckSPSummonOnce
(
c
:
GetControler
())
end
function
Auxiliary
.
SPSummonOnceHintInit
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetDescription
(
226
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_GRANT
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
)
e2
:
SetCondition
(
Auxiliary
.
SPSummonOnceHintCondition
)
local
range
=
0xff
-
LOCATION_MZONE
e2
:
SetTargetRange
(
range
,
range
)
e2
:
SetTarget
(
Auxiliary
.
SPSummonOnceHintTarget
)
e2
:
SetLabelObject
(
e1
)
Duel
.
RegisterEffect
(
e2
,
0
)
end
Auxiliary
.
SPSummonOnceHintInited
=
false
Auxiliary
.
original_SetSPSummonOnce
=
Card
.
SetSPSummonOnce
function
Card
.
SetSPSummonOnce
(
c
,
...
)
if
not
Auxiliary
.
SPSummonOnceHintInited
then
Auxiliary
.
SPSummonOnceHintInited
=
true
Auxiliary
.
SPSummonOnceHintInit
(
c
)
end
return
Auxiliary
.
original_SetSPSummonOnce
(
c
,
...
)
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