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
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
MyCard
ygopro
Commits
a2076282
Commit
a2076282
authored
Feb 25, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ba264204
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
10 deletions
+7
-10
script/c16304628.lua
script/c16304628.lua
+1
-1
script/c44887817.lua
script/c44887817.lua
+1
-2
script/c49838105.lua
script/c49838105.lua
+2
-3
script/c55599882.lua
script/c55599882.lua
+3
-3
script/c95239444.lua
script/c95239444.lua
+0
-1
No files found.
script/c16304628.lua
View file @
a2076282
...
@@ -42,7 +42,7 @@ function c16304628.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,7 +42,7 @@ function c16304628.atkop(e,tp,eg,ep,ev,re,r,rp)
local
atk
=
tc
:
GetAttack
()
local
atk
=
tc
:
GetAttack
()
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
_FINAL
)
e1
:
SetValue
(
atk
/
2
)
e1
:
SetValue
(
atk
/
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
...
...
script/c44887817.lua
View file @
a2076282
...
@@ -28,7 +28,6 @@ function c44887817.initial_effect(c)
...
@@ -28,7 +28,6 @@ function c44887817.initial_effect(c)
end
end
function
c44887817
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44887817
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
CheckNormalSummonActivity
(
tp
)
end
if
chk
==
0
then
return
not
Duel
.
CheckNormalSummonActivity
(
tp
)
end
local
c
=
e
:
GetHandler
()
end
end
function
c44887817
.
filter
(
c
,
e
,
tp
)
function
c44887817
.
filter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
@@ -57,7 +56,7 @@ function c44887817.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,7 +56,7 @@ function c44887817.operation(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
e1
:
Clone
(
e1
)
local
e2
=
e1
:
Clone
(
e1
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
end
end
function
c44887817
.
dfilter
(
c
,
sg
)
function
c44887817
.
dfilter
(
c
,
sg
)
return
sg
:
IsContains
(
c
)
return
sg
:
IsContains
(
c
)
...
...
script/c49838105.lua
View file @
a2076282
...
@@ -19,7 +19,7 @@ function c49838105.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c49838105.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
49838105
,
1
))
e3
:
SetDescription
(
aux
.
Stringid
(
49838105
,
1
))
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetCategory
(
CATEGORY_TOHAND
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_
O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_
F
)
e3
:
SetCode
(
EVENT_PREDRAW
)
e3
:
SetCode
(
EVENT_PREDRAW
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCondition
(
c49838105
.
cfcon
)
e3
:
SetCondition
(
c49838105
.
cfcon
)
...
@@ -47,8 +47,7 @@ function c49838105.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,8 +47,7 @@ function c49838105.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c49838105
.
cfcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c49838105
.
cfcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
==
Duel
.
GetTurnPlayer
()
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
return
tp
==
Duel
.
GetTurnPlayer
()
and
Duel
.
GetDrawCount
(
tp
)
>
0
and
Duel
.
GetDrawCount
(
tp
)
>
0
end
end
function
c49838105
.
cftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c49838105
.
cftg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
...
script/c55599882.lua
View file @
a2076282
...
@@ -25,17 +25,17 @@ function c55599882.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -25,17 +25,17 @@ function c55599882.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetDescription
(
aux
.
Stringid
(
55599882
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
55599882
,
0
))
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e1
:
SetCode
(
EVENT_BATTLE
D
)
e1
:
SetCode
(
EVENT_BATTLE
_DESTROYING
)
e1
:
SetTarget
(
c55599882
.
rmtg
)
e1
:
SetTarget
(
c55599882
.
rmtg
)
e1
:
SetOperation
(
c55599882
.
rmop
)
e1
:
SetOperation
(
c55599882
.
rmop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
fe
0000
+
RESET_PHASE
+
RESET_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1
62
0000
+
RESET_PHASE
+
RESET_END
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
end
function
c55599882
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c55599882
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
if
chk
==
0
then
return
bc
and
bc
:
Is
RelateToBattle
()
and
bc
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
if
chk
==
0
then
return
bc
and
bc
:
Is
Location
(
LOCATION_GRAVE
)
and
bc
:
IsReason
(
REASON_BATTLE
)
and
bc
:
IsType
(
TYPE_MONSTER
)
and
c
:
GetBaseAttack
()
<=
bc
:
GetAttack
()
and
bc
:
IsAbleToRemove
()
end
and
c
:
GetBaseAttack
()
<=
bc
:
GetAttack
()
and
bc
:
IsAbleToRemove
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
bc
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
bc
,
1
,
0
,
0
)
end
end
...
...
script/c95239444.lua
View file @
a2076282
...
@@ -38,7 +38,6 @@ end
...
@@ -38,7 +38,6 @@ end
function
c95239444
.
stop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c95239444
.
stop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
e
:
GetLabel
()
local
ct
=
e
:
GetLabel
()
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
ct
then
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>=
ct
then
Duel
.
ConfirmDecktop
(
tp
,
ct
)
Duel
.
SortDecktop
(
tp
,
tp
,
ct
)
Duel
.
SortDecktop
(
tp
,
tp
,
ct
)
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