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
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
Reinen
ygopro-scripts
Commits
3b3c82ec
Commit
3b3c82ec
authored
Jun 28, 2020
by
mercury233
Committed by
GitHub
Jun 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 龍狸燈
parent
0535e1c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
c42596828.lua
c42596828.lua
+5
-18
No files found.
c42596828.lua
View file @
3b3c82ec
...
@@ -46,11 +46,10 @@ function c42596828.defop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,11 +46,10 @@ function c42596828.defop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c42596828
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42596828
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ac
=
Duel
.
GetAttacker
()
local
ac
,
bc
=
Duel
.
GetBattleMonster
(
tp
)
local
bc
=
Duel
.
GetAttackTarget
()
return
bc
and
(
ac
==
c
or
bc
==
c
)
return
bc
and
(
ac
==
c
or
bc
==
c
)
and
ac
:
IsPosition
(
POS_ATTACK
)
and
ac
:
IsPosition
(
POS_ATTACK
)
and
ac
:
IsDefenseAbove
(
0
)
and
bc
:
IsPosition
(
POS_ATTACK
)
and
bc
:
IsPosition
(
POS_ATTACK
)
and
bc
:
IsDefenseAbove
(
0
)
end
end
function
c42596828
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c42596828
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -64,25 +63,13 @@ function c42596828.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -64,25 +63,13 @@ function c42596828.atkop(e,tp,eg,ep,ev,re,r,rp)
if
a
:
IsRelateToBattle
()
and
d
and
d
:
IsRelateToBattle
()
then
if
a
:
IsRelateToBattle
()
and
d
and
d
:
IsRelateToBattle
()
then
local
ea
=
Effect
.
CreateEffect
(
c
)
local
ea
=
Effect
.
CreateEffect
(
c
)
ea
:
SetType
(
EFFECT_TYPE_SINGLE
)
ea
:
SetType
(
EFFECT_TYPE_SINGLE
)
if
EFFECT_SET_BATTLE_ATTACK
then
ea
:
SetCode
(
EFFECT_SET_BATTLE_ATTACK
)
ea
:
SetCode
(
EFFECT_SET_BATTLE_ATTACK
)
else
ea
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
ea
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
ea
:
SetRange
(
LOCATION_MZONE
)
end
ea
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
ea
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
ea
:
SetValue
(
a
:
GetDefense
())
ea
:
SetValue
(
a
:
GetDefense
())
a
:
RegisterEffect
(
ea
,
true
)
a
:
RegisterEffect
(
ea
,
true
)
local
ed
=
Effect
.
CreateEffect
(
c
)
local
ed
=
Effect
.
CreateEffect
(
c
)
ed
:
SetType
(
EFFECT_TYPE_SINGLE
)
ed
:
SetType
(
EFFECT_TYPE_SINGLE
)
if
EFFECT_SET_BATTLE_ATTACK
then
ed
:
SetCode
(
EFFECT_SET_BATTLE_ATTACK
)
ed
:
SetCode
(
EFFECT_SET_BATTLE_ATTACK
)
else
ed
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
ed
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
ed
:
SetRange
(
LOCATION_MZONE
)
end
ed
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
ed
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
ed
:
SetValue
(
d
:
GetDefense
())
ed
:
SetValue
(
d
:
GetDefense
())
d
:
RegisterEffect
(
ed
,
true
)
d
:
RegisterEffect
(
ed
,
true
)
...
...
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