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
d3ae337a
Commit
d3ae337a
authored
Jan 27, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f7917f1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
10 deletions
+25
-10
c25586143.lua
c25586143.lua
+7
-3
c62315111.lua
c62315111.lua
+18
-7
No files found.
c25586143.lua
View file @
d3ae337a
...
@@ -92,11 +92,15 @@ function c25586143.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -92,11 +92,15 @@ function c25586143.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c25586143
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25586143
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
25586143
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
2
)
if
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
then
e
:
GetHandler
():
RegisterFlagEffect
(
25586143
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_STANDBY
,
0
,
2
,
Duel
.
GetTurnCount
())
else
e
:
GetHandler
():
RegisterFlagEffect
(
25586143
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_STANDBY
,
0
,
1
,
0
)
end
end
end
function
c25586143
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c25586143
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
(
)
local
tid
=
e
:
GetHandler
():
GetFlagEffectLabel
(
25586143
)
return
c
:
GetTurnID
()
~=
Duel
.
GetTurnCount
()
and
c
:
GetFlagEffect
(
25586143
)
>
0
return
tid
and
tid
~=
Duel
.
GetTurnCount
()
end
end
function
c25586143
.
thfilter
(
c
)
function
c25586143
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x46
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToHand
()
return
c
:
IsSetCard
(
0x46
)
and
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsAbleToHand
()
...
...
c62315111.lua
View file @
d3ae337a
...
@@ -2,17 +2,28 @@
...
@@ -2,17 +2,28 @@
function
c62315111
.
initial_effect
(
c
)
function
c62315111
.
initial_effect
(
c
)
--chain attack
--chain attack
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
62315111
,
0
))
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_BATTLED
)
e1
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e1
:
SetOperation
(
c62315111
.
regop
)
e1
:
SetCondition
(
c62315111
.
atcon
)
e1
:
SetOperation
(
c62315111
.
atop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
62315111
,
0
))
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetCondition
(
c62315111
.
atcon
)
e2
:
SetOperation
(
c62315111
.
atop
)
c
:
RegisterEffect
(
e2
)
end
function
c62315111
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
if
bc
and
bc
:
GetCounter
(
0x100e
)
>
0
then
c
:
RegisterFlagEffect
(
62315111
,
RESET_PHASE
+
PHASE_DAMAGE
,
0
,
1
)
end
end
end
function
c62315111
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62315111
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
aux
.
bdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
c
:
IsChainAttackable
()
return
aux
.
bdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
c
:
IsChainAttackable
()
and
c
:
GetFlagEffect
(
62315111
)
~=
0
and
c
:
GetBattleTarget
():
GetCounter
(
0x100e
)
>
0
end
end
function
c62315111
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c62315111
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChainAttack
()
Duel
.
ChainAttack
()
...
...
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