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
bb4f1d09
Commit
bb4f1d09
authored
Jun 08, 2014
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
211e9f3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
script/c79997591.lua
script/c79997591.lua
+6
-7
No files found.
script/c79997591.lua
View file @
bb4f1d09
...
@@ -16,14 +16,13 @@ end
...
@@ -16,14 +16,13 @@ end
function
c79997591
.
cbop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79997591
.
cbop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
at
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttacker
()
local
bt
=
Duel
.
GetAttackTarget
()
local
bt
=
Duel
.
GetAttackTarget
()
if
not
(
bt
:
IsRelateToBattle
()
and
bt
:
IsControler
(
tp
))
then
return
end
if
at
:
IsAttackable
()
and
not
at
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
and
Duel
.
Damage
(
1
-
tp
,
bt
:
GetAttack
(),
REASON_EFFECT
)
>
0
then
if
at
:
IsAttackable
()
and
not
at
:
IsStatus
(
STATUS_ATTACK_CANCELED
)
and
Duel
.
Damage
(
1
-
tp
,
bt
:
GetAttack
(),
REASON_EFFECT
)
>
0
then
Duel
.
ChangeAttackTarget
(
nil
)
Duel
.
ChangeAttackTarget
(
nil
)
end
end
if
bt
:
IsRelateToBattle
()
and
bt
:
IsControler
(
tp
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
+
RESET_SELF_TURN
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
+
RESET_SELF_TURN
)
bt
:
RegisterEffect
(
e1
)
bt
:
RegisterEffect
(
e1
)
end
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