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
wyykak
ygopro
Commits
9cb061be
Commit
9cb061be
authored
Nov 19, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
dfdd43cb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
38 deletions
+23
-38
script/c20426907.lua
script/c20426907.lua
+1
-3
script/c40854824.lua
script/c40854824.lua
+1
-1
script/c494922.lua
script/c494922.lua
+1
-7
script/c94432298.lua
script/c94432298.lua
+20
-27
No files found.
script/c20426907.lua
View file @
9cb061be
...
...
@@ -84,9 +84,7 @@ function c20426907.distg3(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c20426907
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
Duel
.
IsExistingMatchingCard
(
c20426907
.
sdfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
then
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
if
c20426907
.
sdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
then
return
end
if
e
:
GetLabel
()
==
0
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
tc
=
g
:
GetFirst
()
...
...
script/c40854824.lua
View file @
9cb061be
...
...
@@ -47,6 +47,6 @@ function c40854824.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
g
:
Remove
(
Card
.
IsCode
,
nil
,
tc
:
GetCode
())
ft
=
ft
-
1
until
ft
<=
0
or
g
:
GetCount
()
==
0
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
40854824
,
1
))
until
ft
<=
0
or
g
:
GetCount
()
==
0
or
not
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
40854824
,
0
))
Duel
.
SpecialSummonComplete
()
end
script/c494922.lua
View file @
9cb061be
...
...
@@ -5,11 +5,8 @@ function c494922.initial_effect(c)
c
:
EnableReviveLimit
()
--defence attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_
FIELD
)
e1
:
SetType
(
EFFECT_TYPE_
SINGLE
)
e1
:
SetCode
(
EFFECT_DEFENCE_ATTACK
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
c494922
.
atktg
)
e1
:
SetValue
(
1
)
c
:
RegisterEffect
(
e1
)
--set
...
...
@@ -25,9 +22,6 @@ function c494922.initial_effect(c)
e2
:
SetOperation
(
c494922
.
setop
)
c
:
RegisterEffect
(
e2
)
end
function
c494922
.
atktg
(
e
,
c
)
return
c
:
IsSetCard
(
0x9a
)
end
function
c494922
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
...
...
script/c94432298.lua
View file @
9cb061be
...
...
@@ -5,9 +5,8 @@ function c94432298.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
TIMING_STANDBY_PHASE
,
0
)
e1
:
SetCost
(
c94432298
.
cost
)
e1
:
SetTarget
(
c94432298
.
target
)
e1
:
SetOperation
(
c94432298
.
activate
)
e1
:
SetTarget
(
c94432298
.
tgtg1
)
e1
:
SetOperation
(
c94432298
.
tgop
)
c
:
RegisterEffect
(
e1
)
--tograve
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -17,7 +16,8 @@ function c94432298.initial_effect(c)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c94432298
.
tgcon
)
e2
:
SetTarget
(
c94432298
.
tgtg
)
e2
:
SetCost
(
c94432298
.
tgcost
)
e2
:
SetTarget
(
c94432298
.
tgtg2
)
e2
:
SetOperation
(
c94432298
.
tgop
)
c
:
RegisterEffect
(
e2
)
--tograve
...
...
@@ -29,42 +29,35 @@ function c94432298.initial_effect(c)
e3
:
SetOperation
(
c94432298
.
sdop
)
c
:
RegisterEffect
(
e3
)
end
function
c94432298
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c94432298
.
tgtg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
and
Duel
.
IsExistingMatchingCard
(
c94432298
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
94432298
,
0
))
then
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
and
Duel
.
IsExistingMatchingCard
(
c94432298
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
94432298
,
0
))
then
e
:
SetCategory
(
CATEGORY_TOGRAVE
)
e
:
GetHandler
():
RegisterFlagEffect
(
94432298
,
RESET_PHASE
+
RESET_STANDBY
,
0
,
1
)
end
end
function
c94432298
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
e
:
GetHandler
():
GetFlagEffect
(
94432298
)
~=
0
then
e
:
GetHandler
():
RegisterFlagEffect
(
94432298
,
RESET_PHASE
+
RESET_END
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
else
e
:
SetCategory
(
0
)
end
end
function
c94432298
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
IsExistingMatchingCard
(
c94432298
.
sdfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
then
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
if
e
:
GetHandler
():
GetFlagEffect
(
94432298
)
==
0
or
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94432298
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
2
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
end
function
c94432298
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c94432298
.
tgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
94432298
)
==
0
end
e
:
GetHandler
():
RegisterFlagEffect
(
94432298
,
RESET_PHASE
+
RESET_END
,
0
,
1
)
end
function
c94432298
.
filter
(
c
)
return
c
:
IsSetCard
(
0xbb
)
and
c
:
IsAbleToGrave
()
end
function
c94432298
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
e
:
GetHandler
():
GetFlagEffect
(
94432298
)
==
0
end
function
c94432298
.
tgtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c94432298
.
tgtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c94432298
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c94432298
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
c94432298
.
sdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
then
return
end
if
e
:
GetHandler
():
GetFlagEffect
(
94432298
)
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c94432298
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
2
,
nil
)
if
g
:
GetCount
()
>
0
then
...
...
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