Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygo-special-rules
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
JoyJ
ygo-special-rules
Commits
b6fd6b1d
Commit
b6fd6b1d
authored
Dec 10, 2020
by
JoyJ
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
1383e0b0
323215af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
37 deletions
+37
-37
special-fh-20201208.lua
special-fh-20201208.lua
+37
-37
No files found.
special-fh-20201208.lua
View file @
b6fd6b1d
--FH special [Warp Point]
function
Auxiliary
.
PreloadUds
()
--adjust
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_ADJUST
)
e1
:
SetOperation
(
aux
.
AdjustOperation
)
Duel
.
RegisterEffect
(
e1
,
0
)
end
function
aux
.
AdjustOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetOperation
(
aux
.
LPDecrease
)
Duel
.
RegisterEffect
(
e1
,
0
)
--atk up
local
e2
=
Effect
.
GlobalEffect
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
AtkUpFilter
)
e2
:
SetValue
(
2000
)
Duel
.
RegisterEffect
(
e2
,
0
)
e
:
Reset
()
end
function
aux
.
LPDecrease
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetActivityCount
(
rp
,
ACTIVITY_SPSUMMON
)
>
2
then
local
lp
=
Duel
.
GetLP
(
rp
)
-
800
if
lp
<
0
then
lp
=
0
end
Duel
.
SetLP
(
rp
,
lp
)
end
end
function
aux
.
AtkUpFilter
(
e
,
c
)
local
code
=
c
:
GetOriginalCode
()
return
code
==
69884162
or
code
==
40044918
or
code
==
71564252
or
code
==
48092532
or
code
==
83986578
--FH special [Warp Point]
function
Auxiliary
.
PreloadUds
()
--adjust
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EVENT_ADJUST
)
e1
:
SetOperation
(
aux
.
AdjustOperation
)
Duel
.
RegisterEffect
(
e1
,
0
)
end
function
aux
.
AdjustOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetOperation
(
aux
.
LPDecrease
)
Duel
.
RegisterEffect
(
e1
,
0
)
--atk up
local
e2
=
Effect
.
GlobalEffect
()
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTarget
(
aux
.
AtkUpFilter
)
e2
:
SetValue
(
2000
)
Duel
.
RegisterEffect
(
e2
,
0
)
e
:
Reset
()
end
function
aux
.
LPDecrease
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetActivityCount
(
rp
,
ACTIVITY_SPSUMMON
)
>
2
then
local
lp
=
Duel
.
GetLP
(
rp
)
-
800
if
lp
<
0
then
lp
=
0
end
Duel
.
SetLP
(
rp
,
lp
)
end
end
function
aux
.
AtkUpFilter
(
e
,
c
)
local
code
=
c
:
GetOriginalCode
()
return
code
==
69884162
or
code
==
40044918
or
code
==
71564252
or
code
==
48092532
or
code
==
83986578
end
\ No newline at end of file
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