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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
2d50e7a5
You need to sign in or sign up before continuing.
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
Show 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)
e5
:
SetCondition
(
c90590303
.
discon
)
e5
:
SetOperation
(
c90590303
.
disop
)
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
c90590303
.
xyz_number
=
41
function
c90590303
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -70,10 +80,23 @@ function c90590303.postg(e,c)
end
function
c90590303
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
or
c
:
IsAttackPos
()
then
return
false
end
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
re
:
GetHandler
():
IsDefensePos
()
and
loc
==
LOCATION_MZONE
local
cid
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_CHAIN_ID
)
return
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
c
:
IsDefensePos
()
and
c90590303
[
cid
]
end
function
c90590303
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
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