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
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
Commits
2d50e7a5
Commit
2d50e7a5
authored
Jul 18, 2017
by
nanahira
Committed by
mercury233
Jul 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix No.41 (#890)
parent
8f07e1ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
c90590303.lua
c90590303.lua
+26
-3
No files found.
c90590303.lua
View file @
2d50e7a5
...
@@ -44,6 +44,16 @@ function c90590303.initial_effect(c)
...
@@ -44,6 +44,16 @@ function c90590303.initial_effect(c)
e5
:
SetCondition
(
c90590303
.
discon
)
e5
:
SetCondition
(
c90590303
.
discon
)
e5
:
SetOperation
(
c90590303
.
disop
)
e5
:
SetOperation
(
c90590303
.
disop
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--global check for getting activate position
if
not
c90590303
.
global_check
then
c90590303
.
global_check
=
true
local
ge1
=
Effect
.
GlobalEffect
()
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHAINING
)
ge1
:
SetCondition
(
c90590303
.
regcon
)
ge1
:
SetOperation
(
c90590303
.
regop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
end
c90590303
.
xyz_number
=
41
c90590303
.
xyz_number
=
41
function
c90590303
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90590303
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -70,10 +80,23 @@ function c90590303.postg(e,c)
...
@@ -70,10 +80,23 @@ function c90590303.postg(e,c)
end
end
function
c90590303
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90590303
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
local
cid
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_CHAIN_ID
)
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
c
:
IsAttackPos
()
then
return
false
end
return
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
c
:
IsDefensePos
()
and
c90590303
[
cid
]
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsDefensePos
()
and
loc
==
LOCATION_MZONE
end
end
function
c90590303
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90590303
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
end
end
function
c90590303
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
if
not
re
:
IsActiveType
(
TYPE_MONSTER
)
or
loc
~=
LOCATION_MZONE
then
return
false
end
local
rc
=
re
:
GetHandler
()
if
rc
:
IsRelateToEffect
(
re
)
then
return
rc
:
IsDefensePos
()
else
return
rc
:
IsPreviousPosition
(
POS_DEFENSE
)
end
end
function
c90590303
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
cid
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_CHAIN_ID
)
c90590303
[
cid
]
=
true
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