Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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-520DIY
ygopro
Commits
a013a8ad
Commit
a013a8ad
authored
Mar 14, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1182 from nekrozar/patch-2
fix Anti-Spell Fragrance
parents
1cfd07a0
4de55981
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
script/c58921041.lua
script/c58921041.lua
+14
-1
No files found.
script/c58921041.lua
View file @
a013a8ad
...
@@ -15,9 +15,22 @@ function c58921041.initial_effect(c)
...
@@ -15,9 +15,22 @@ function c58921041.initial_effect(c)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetValue
(
c58921041
.
aclimit
)
e2
:
SetValue
(
c58921041
.
aclimit
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_SSET
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetOperation
(
c58921041
.
aclimset
)
c
:
RegisterEffect
(
e3
)
end
end
function
c58921041
.
aclimit
(
e
,
re
,
tp
)
function
c58921041
.
aclimit
(
e
,
re
,
tp
)
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
not
re
:
IsActiveType
(
TYPE_SPELL
)
then
return
false
end
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
not
re
:
IsActiveType
(
TYPE_SPELL
)
then
return
false
end
local
c
=
re
:
GetHandler
()
local
c
=
re
:
GetHandler
()
return
not
c
:
IsLocation
(
LOCATION_SZONE
)
or
(
Duel
.
GetTurnCount
()
-
c
:
GetTurnID
()
<
2
and
c
:
GetFieldID
()
>
e
:
GetHandler
():
GetFieldID
())
return
not
c
:
IsLocation
(
LOCATION_SZONE
)
or
c
:
GetFlagEffect
(
58921041
)
>
0
end
function
c58921041
.
aclimset
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
tc
:
RegisterFlagEffect
(
58921041
,
RESET_PHASE
+
RESET_END
+
RESET_OPPO_TURN
,
0
,
1
)
tc
=
eg
:
GetNext
()
end
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