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
八宫一月
ygopro-scripts
Commits
06d984b8
Commit
06d984b8
authored
Apr 21, 2018
by
nekrozar
Committed by
mercury233
Apr 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#1021)
parent
63aa6c77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
c24731391.lua
c24731391.lua
+5
-16
No files found.
c24731391.lua
View file @
06d984b8
...
...
@@ -32,10 +32,10 @@ function c24731391.initial_effect(c)
c
:
RegisterEffect
(
e3
)
--atk up
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
E
VENT_PRE_DAMAGE_CALCULATE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
E
FFECT_UPDATE_ATTACK
)
e4
:
SetCondition
(
c24731391
.
atkcon
)
e4
:
Set
Operation
(
c24731391
.
atkop
)
e4
:
Set
Value
(
1000
)
c
:
RegisterEffect
(
e4
)
--to hand
local
e5
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -68,21 +68,10 @@ end
function
c24731391
.
tglimit
(
e
,
c
)
return
c
~=
e
:
GetHandler
()
end
function
c24731391
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24731391
.
atkcon
(
e
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
return
bc
and
bc
:
IsType
(
TYPE_LINK
)
end
function
c24731391
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetValue
(
1000
)
c
:
RegisterEffect
(
e1
)
end
return
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
bc
and
bc
:
IsType
(
TYPE_LINK
)
end
function
c24731391
.
thfilter
(
c
)
return
c
:
IsRace
(
RACE_CYBERSE
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
...
...
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