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
e90c2b6e
Commit
e90c2b6e
authored
Dec 26, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #205 from nekrozar/patch-5
fix ChangeAttackTarget
parents
482d2544
ef0b26cd
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
8 deletions
+20
-8
c21558682.lua
c21558682.lua
+1
-1
c42256406.lua
c42256406.lua
+4
-1
c59170782.lua
c59170782.lua
+1
-1
c59560625.lua
c59560625.lua
+1
-1
c59965151.lua
c59965151.lua
+4
-1
c69937550.lua
c69937550.lua
+4
-1
c79473793.lua
c79473793.lua
+4
-1
c81983656.lua
c81983656.lua
+1
-1
No files found.
c21558682.lua
View file @
e90c2b6e
...
...
@@ -49,7 +49,7 @@ end
function
c21558682
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
not
Duel
.
GetAttacker
():
IsImmuneToEffect
(
e
)
then
Duel
.
ChangeAttackTarget
(
tc
)
end
end
c42256406.lua
View file @
e90c2b6e
...
...
@@ -48,7 +48,10 @@ function c42256406.cbcon(e,tp,eg,ep,ev,re,r,rp)
return
r
~=
REASON_REPLACE
and
c
~=
bt
and
bt
:
IsFaceup
()
and
bt
:
GetControler
()
==
c
:
GetControler
()
end
function
c42256406
.
cbop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeAttackTarget
(
e
:
GetHandler
())
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
not
Duel
.
GetAttacker
():
IsImmuneToEffect
(
e
)
then
Duel
.
ChangeAttackTarget
(
c
)
end
end
function
c42256406
.
defcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
1
)
end
...
...
c59170782.lua
View file @
e90c2b6e
...
...
@@ -72,7 +72,7 @@ function c59170782.tgcon2(e,tp,eg,ep,ev,re,r,rp)
end
function
c59170782
.
tgop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsRelateToEffect
(
e
)
and
not
Duel
.
GetAttacker
():
IsImmuneToEffect
(
e
)
then
Duel
.
ChangeAttackTarget
(
c
)
end
end
...
...
c59560625.lua
View file @
e90c2b6e
...
...
@@ -37,7 +37,7 @@ function c59560625.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c59560625
.
activate1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
not
Duel
.
GetAttacker
():
IsImmuneToEffect
(
e
)
then
Duel
.
ChangeAttackTarget
(
tc
)
end
end
...
...
c59965151.lua
View file @
e90c2b6e
...
...
@@ -26,7 +26,10 @@ function c59965151.cbcon(e,tp,eg,ep,ev,re,r,rp)
return
c
~=
bt
and
bt
:
IsFaceup
()
and
bt
:
GetControler
()
==
c
:
GetControler
()
end
function
c59965151
.
cbop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeAttackTarget
(
e
:
GetHandler
())
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
not
Duel
.
GetAttacker
():
IsImmuneToEffect
(
e
)
then
Duel
.
ChangeAttackTarget
(
c
)
end
end
function
c59965151
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
...
...
c69937550.lua
View file @
e90c2b6e
...
...
@@ -39,5 +39,8 @@ function c69937550.cbcondition(e,tp,eg,ep,ev,re,r,rp)
return
r
~=
REASON_REPLACE
and
c
~=
bt
and
bt
:
IsFaceup
()
and
bt
:
IsSetCard
(
0x1034
)
and
bt
:
GetControler
()
==
c
:
GetControler
()
end
function
c69937550
.
cboperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeAttackTarget
(
e
:
GetHandler
())
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
not
Duel
.
GetAttacker
():
IsImmuneToEffect
(
e
)
then
Duel
.
ChangeAttackTarget
(
c
)
end
end
c79473793.lua
View file @
e90c2b6e
...
...
@@ -57,5 +57,8 @@ function c79473793.cbcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c79473793
.
cbop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeAttackTarget
(
e
:
GetHandler
())
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
not
Duel
.
GetAttacker
():
IsImmuneToEffect
(
e
)
then
Duel
.
ChangeAttackTarget
(
c
)
end
end
c81983656.lua
View file @
e90c2b6e
...
...
@@ -68,7 +68,7 @@ function c81983656.cbtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c81983656
.
cbop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
not
Duel
.
GetAttacker
():
IsImmuneToEffect
(
e
)
then
Duel
.
ChangeAttackTarget
(
tc
)
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