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
5c9ada02
Commit
5c9ada02
authored
Feb 21, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1122 from Lsty/patch-6
Update c82044279.lua
parents
262473de
e80b9a9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
script/c82044279.lua
script/c82044279.lua
+17
-10
No files found.
script/c82044279.lua
View file @
5c9ada02
...
@@ -16,19 +16,26 @@ function c82044279.initial_effect(c)
...
@@ -16,19 +16,26 @@ function c82044279.initial_effect(c)
e1
:
SetTarget
(
c82044279
.
target
)
e1
:
SetTarget
(
c82044279
.
target
)
e1
:
SetOperation
(
c82044279
.
operation
)
e1
:
SetOperation
(
c82044279
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetDescription
(
aux
.
Stringid
(
82044279
,
1
))
e2
:
SetCondition
(
c82044279
.
condition2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c82044279
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82044279
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
local
c
=
e
:
GetHandler
()
if
not
re
:
IsActiveType
(
TYPE_MONSTER
)
or
not
Duel
.
IsChainNegatable
(
ev
)
then
return
false
end
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
local
tgp
,
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_CONTROLER
,
CHAININFO_TRIGGERING_LOCATION
)
if
loc
==
LOCATION_MZONE
and
rc
:
IsLevelAbove
(
5
)
and
rc
~=
e
:
GetHandler
()
then
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
rc
:
IsLevelAbove
(
5
)
and
loc
==
LOCATION_MZONE
return
true
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
not
c
:
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
IsChainNegatable
(
ev
)
elseif
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
end
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
function
c82044279
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
tg
:
GetFirst
()
if
e
==
re
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
return
tg
:
GetCount
()
==
1
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
tc
:
IsLevelAbove
(
5
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
else
return
false
end
if
not
g
or
g
:
GetCount
()
~=
1
then
return
false
end
local
tc
=
g
:
GetFirst
()
local
c
=
e
:
GetHandler
()
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
tc
:
IsLevelAbove
(
5
)
and
tc
:
IsLocation
(
LOCATION_MZONE
)
and
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
not
c
:
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c82044279
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82044279
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
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