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
1cc1dbcc
Commit
1cc1dbcc
authored
Jan 19, 2016
by
woodee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #229 from mercury233/patch-1
fix
parents
280d2466
65e3833c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
c19254117.lua
c19254117.lua
+11
-11
No files found.
c19254117.lua
View file @
1cc1dbcc
...
@@ -77,7 +77,7 @@ function c19254117.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -77,7 +77,7 @@ function c19254117.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c19254117
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c19254117
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
then
if
Duel
.
GetAttacker
()
then
Duel
.
ChangeAttackTarget
(
tc
)
end
if
Duel
.
GetAttacker
()
then
Duel
.
ChangeAttackTarget
(
tc
)
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -85,16 +85,16 @@ function c19254117.tgop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -85,16 +85,16 @@ function c19254117.tgop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e
3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e
2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e
3
:
SetType
(
EFFECT_TYPE_FIELD
)
e
2
:
SetType
(
EFFECT_TYPE_FIELD
)
e
3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e
2
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e
3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e
2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e
3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e
2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e
3
:
SetTarget
(
c19254117
.
attg
)
e
2
:
SetTarget
(
c19254117
.
attg
)
e
3
:
SetValue
(
1
)
e
2
:
SetValue
(
1
)
e
3
:
SetLabel
(
tc
:
GetRealFieldID
())
e
2
:
SetLabel
(
tc
:
GetRealFieldID
())
e
3
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
e
2
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
)
Duel
.
RegisterEffect
(
e
3
,
tp
)
Duel
.
RegisterEffect
(
e
2
,
tp
)
end
end
end
end
function
c19254117
.
attg
(
e
,
c
)
function
c19254117
.
attg
(
e
,
c
)
...
...
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