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
caa2e31f
Commit
caa2e31f
authored
Jan 27, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7af40264
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
13 deletions
+28
-13
c36278828.lua
c36278828.lua
+4
-0
c54306223.lua
c54306223.lua
+8
-13
c60728397.lua
c60728397.lua
+4
-0
c73899015.lua
c73899015.lua
+4
-0
c77972406.lua
c77972406.lua
+4
-0
c9284723.lua
c9284723.lua
+4
-0
No files found.
c36278828.lua
View file @
caa2e31f
...
@@ -22,6 +22,10 @@ end
...
@@ -22,6 +22,10 @@ end
function
c36278828
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36278828
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanAddCounter
(
0x9
,
1
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanAddCounter
(
0x9
,
1
)
then
local
atk
=
tc
:
GetAttack
()
tc
:
AddCounter
(
0x9
,
1
)
tc
:
AddCounter
(
0x9
,
1
)
if
atk
>
0
and
tc
:
GetAttack
()
==
0
then
Duel
.
RaiseEvent
(
tc
,
54306223
,
e
,
0
,
0
,
0
,
0
)
end
end
end
end
end
c54306223.lua
View file @
caa2e31f
...
@@ -27,23 +27,19 @@ function c54306223.initial_effect(c)
...
@@ -27,23 +27,19 @@ function c54306223.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
54306223
,
1
))
e4
:
SetDescription
(
aux
.
Stringid
(
54306223
,
1
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetCode
(
54306223
)
e4
:
SetCode
(
54306223
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetTarget
(
c54306223
.
destg
)
e4
:
SetTarget
(
c54306223
.
destg
)
e4
:
SetOperation
(
c54306223
.
desop
)
e4
:
SetOperation
(
c54306223
.
desop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
local
g
=
Group
.
CreateGroup
()
g
:
KeepAlive
()
e2
:
SetLabelObject
(
g
)
e4
:
SetLabelObject
(
g
)
end
end
function
c54306223
.
atkval
(
e
,
c
)
function
c54306223
.
atkval
(
e
,
c
)
return
c
:
GetCounter
(
0x9
)
*-
500
return
c
:
GetCounter
(
0x9
)
*-
500
end
end
function
c54306223
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c54306223
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
e
:
GetLabelObject
()
local
g
=
Group
.
CreateGroup
()
g
:
Clear
()
for
i
=
0
,
4
do
for
i
=
0
,
4
do
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_MZONE
,
i
)
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_MZONE
,
i
)
if
tc
and
tc
:
IsCanAddCounter
(
0x9
,
1
)
and
not
tc
:
IsSetCard
(
0x50
)
then
if
tc
and
tc
:
IsCanAddCounter
(
0x9
,
1
)
and
not
tc
:
IsSetCard
(
0x50
)
then
...
@@ -65,19 +61,18 @@ function c54306223.acop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,19 +61,18 @@ function c54306223.acop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Raise
SingleEvent
(
e
:
GetHandler
()
,
54306223
,
e
,
0
,
0
,
0
,
0
)
Duel
.
Raise
Event
(
g
,
54306223
,
e
,
0
,
0
,
0
,
0
)
end
end
end
end
function
c54306223
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54306223
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
g
=
e
:
GetLabelObject
()
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetTargetCard
(
g
)
local
g
=
eg
:
Filter
(
Card
.
IsDestructable
,
nil
)
local
sg
=
g
:
Filter
(
Card
.
IsDestructable
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
sg
,
sg
:
GetCount
(),
0
,
0
)
end
end
function
c54306223
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c54306223
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
e
:
GetLabelObject
()
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
e
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
end
end
...
...
c60728397.lua
View file @
caa2e31f
...
@@ -36,7 +36,11 @@ function c60728397.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,7 +36,11 @@ function c60728397.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanAddCounter
(
0x9
,
2
)
and
g
:
GetFirst
():
IsLocation
(
LOCATION_GRAVE
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanAddCounter
(
0x9
,
2
)
and
g
:
GetFirst
():
IsLocation
(
LOCATION_GRAVE
)
then
local
atk
=
tc
:
GetAttack
()
tc
:
AddCounter
(
0x9
,
2
)
tc
:
AddCounter
(
0x9
,
2
)
if
atk
>
0
and
tc
:
GetAttack
()
==
0
then
Duel
.
RaiseEvent
(
tc
,
54306223
,
e
,
0
,
0
,
0
,
0
)
end
end
end
end
end
end
end
c73899015.lua
View file @
caa2e31f
...
@@ -32,6 +32,10 @@ end
...
@@ -32,6 +32,10 @@ end
function
c73899015
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c73899015
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanAddCounter
(
0x9
,
1
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanAddCounter
(
0x9
,
1
)
then
local
atk
=
tc
:
GetAttack
()
tc
:
AddCounter
(
0x9
,
1
)
tc
:
AddCounter
(
0x9
,
1
)
if
atk
>
0
and
tc
:
GetAttack
()
==
0
then
Duel
.
RaiseEvent
(
tc
,
54306223
,
e
,
0
,
0
,
0
,
0
)
end
end
end
end
end
c77972406.lua
View file @
caa2e31f
...
@@ -25,6 +25,10 @@ function c77972406.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,6 +25,10 @@ function c77972406.activate(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
NegateAttack
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
NegateAttack
()
then
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE
,
1
)
Duel
.
SkipPhase
(
1
-
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_BATTLE
,
1
)
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
atk
=
tc
:
GetAttack
()
tc
:
AddCounter
(
0x9
,
1
)
tc
:
AddCounter
(
0x9
,
1
)
if
atk
>
0
and
tc
:
GetAttack
()
==
0
then
Duel
.
RaiseEvent
(
tc
,
54306223
,
e
,
0
,
0
,
0
,
0
)
end
end
end
end
end
c9284723.lua
View file @
caa2e31f
...
@@ -32,6 +32,10 @@ end
...
@@ -32,6 +32,10 @@ end
function
c9284723
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c9284723
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanAddCounter
(
0x9
,
2
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsCanAddCounter
(
0x9
,
2
)
then
local
atk
=
tc
:
GetAttack
()
tc
:
AddCounter
(
0x9
,
2
)
tc
:
AddCounter
(
0x9
,
2
)
if
atk
>
0
and
tc
:
GetAttack
()
==
0
then
Duel
.
RaiseEvent
(
tc
,
54306223
,
e
,
0
,
0
,
0
,
0
)
end
end
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