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
2560d7bd
Commit
2560d7bd
authored
Aug 18, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3240d921
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
77 deletions
+45
-77
script/c2295440.lua
script/c2295440.lua
+6
-6
script/c39389320.lua
script/c39389320.lua
+2
-2
script/c47198668.lua
script/c47198668.lua
+5
-2
script/c58554959.lua
script/c58554959.lua
+15
-6
script/c64726269.lua
script/c64726269.lua
+1
-0
script/c83531441.lua
script/c83531441.lua
+2
-1
script/c94977269.lua
script/c94977269.lua
+14
-60
No files found.
script/c2295440.lua
View file @
2560d7bd
...
...
@@ -10,21 +10,21 @@ function c2295440.initial_effect(c)
e1
:
SetOperation
(
c2295440
.
activate
)
c
:
RegisterEffect
(
e1
)
end
function
c2295440
.
costfilter
(
c
)
return
c
:
IsAbleToGraveAsCost
()
and
c
:
IsType
(
TYPE_MONSTER
)
function
c2295440
.
costfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToGraveAsCost
()
and
Duel
.
IsExistingMatchingCard
(
c2295440
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
c
,
e
,
tp
)
end
function
c2295440
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c2295440
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c2295440
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c2295440
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c2295440
.
costfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c2295440
.
filter
(
c
,
e
,
tp
)
return
c
:
GetLevel
()
==
1
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c2295440
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c2295440
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
)
end
function
c2295440
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c39389320.lua
View file @
2560d7bd
...
...
@@ -11,8 +11,8 @@ function c39389320.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c39389320
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
nil
,
RACE_WARRIOR
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
10
,
nil
,
RACE_WARRIOR
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
e
:
GetHandler
()
,
RACE_WARRIOR
)
end
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
10
,
e
:
GetHandler
()
,
RACE_WARRIOR
)
local
ct
=
Duel
.
Release
(
g
,
REASON_COST
)
e
:
SetLabel
(
ct
)
end
...
...
script/c47198668.lua
View file @
2560d7bd
...
...
@@ -91,6 +91,9 @@ function c47198668.atkop2(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
end
end
function
c47198668
.
efilter
(
e
,
re
,
rp
,
c
)
return
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
and
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
function
c47198668
.
efilter
(
e
,
re
,
rp
)
if
not
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
true
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
return
not
g
:
IsContains
(
e
:
GetHandler
())
end
script/c58554959.lua
View file @
2560d7bd
--E-HERO マリシャス·エッジ
function
c58554959
.
initial_effect
(
c
)
--
decrease
tribute
--
summon with 1
tribute
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
58554959
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DECREASE_TRIBUTE
)
e1
:
SetValue
(
0x1
)
e1
:
SetCondition
(
c58554959
.
deccon
)
e1
:
SetCode
(
EFFECT_SUMMON_PROC
)
e1
:
SetCondition
(
c58554959
.
otcon
)
e1
:
SetOperation
(
c58554959
.
otop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
c
:
RegisterEffect
(
e1
)
--pierce
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -13,6 +16,12 @@ function c58554959.initial_effect(c)
e2
:
SetCode
(
EFFECT_PIERCE
)
c
:
RegisterEffect
(
e2
)
end
function
c58554959
.
deccon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
)
~=
0
function
c58554959
.
otcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
c
:
GetLevel
()
>
6
and
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
0
,
LOCATION_MZONE
)
~=
0
and
Duel
.
GetTributeCount
(
c
)
>
0
end
function
c58554959
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
sg
=
Duel
.
SelectTribute
(
tp
,
c
,
1
,
1
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
end
script/c64726269.lua
View file @
2560d7bd
...
...
@@ -54,6 +54,7 @@ function c64726269.effop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
rc
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c64726269
.
drcon
)
...
...
script/c83531441.lua
View file @
2560d7bd
...
...
@@ -69,7 +69,8 @@ function c83531441.posop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
IsAttackPos
()
then
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENCE
)
end
end
end
end
function
c83531441
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
e
:
GetHandler
():
IsReason
(
REASON_RETURN
)
end
...
...
script/c94977269.lua
View file @
2560d7bd
...
...
@@ -36,34 +36,22 @@ function c94977269.initial_effect(c)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_SPSUMMON
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetOperation
(
c94977269
.
checkop
1
)
e5
:
SetOperation
(
c94977269
.
checkop
)
c
:
RegisterEffect
(
e5
)
--tohand
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e6
:
SetCode
(
EVENT_CHAINING
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetOperation
(
c94977269
.
checkop2
)
e6
:
SetDescription
(
aux
.
Stringid
(
94977269
,
0
))
e6
:
SetCategory
(
CATEGORY_TOHAND
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_TO_GRAVE
)
e6
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e6
:
SetCondition
(
c94977269
.
thcon
)
e6
:
SetTarget
(
c94977269
.
thtg
)
e6
:
SetOperation
(
c94977269
.
thop
)
c
:
RegisterEffect
(
e6
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e7
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e7
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetOperation
(
c94977269
.
checkop3
)
c
:
RegisterEffect
(
e7
)
--tohand
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetDescription
(
aux
.
Stringid
(
94977269
,
0
))
e8
:
SetCategory
(
CATEGORY_TOHAND
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e8
:
SetCode
(
EVENT_TO_GRAVE
)
e8
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e8
:
SetCondition
(
c94977269
.
thcon
)
e8
:
SetTarget
(
c94977269
.
thtg
)
e8
:
SetOperation
(
c94977269
.
thop
)
c
:
RegisterEffect
(
e8
)
end
function
c94977269
.
ffilter1
(
c
)
return
c
:
IsSetCard
(
0x9d
)
...
...
@@ -179,8 +167,9 @@ end
function
c94977269
.
spval
(
e
,
se
,
sp
)
return
1
-
e
:
GetHandler
():
GetFlagEffect
(
94977269
+
sp
)
end
function
c94977269
.
checkop
1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94977269
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
eg
:
IsContains
(
c
)
then
return
end
local
p1
=
false
local
p2
=
false
local
tc
=
eg
:
GetFirst
()
...
...
@@ -191,41 +180,6 @@ function c94977269.checkop1(e,tp,eg,ep,ev,re,r,rp)
if
p1
then
c
:
RegisterFlagEffect
(
94977269
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
if
p2
then
c
:
RegisterFlagEffect
(
94977270
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c94977269
.
checkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_SPECIAL_SUMMON
)
local
c
=
e
:
GetHandler
()
if
ex
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_CANNOT_SPECIAL_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetAbsoluteRange
(
rp
,
1
,
0
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVING
)
e2
:
SetOperation
(
c94977269
.
rst
)
e2
:
SetLabelObject
(
e1
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c94977269
.
rst
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
e
:
GetLabelObject
()
if
e1
then
e1
:
Reset
()
end
e
:
Reset
()
end
function
c94977269
.
checkop3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ex
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_SPECIAL_SUMMON
)
if
ex
then
if
c
:
GetFlagEffect
(
94977271
)
==
0
then
c
:
RegisterFlagEffect
(
94977271
,
RESET_EVENT
+
0x1fc0000
,
0
,
1
)
elseif
not
c
:
IsDisabled
()
then
c
:
RegisterFlagEffect
(
94977269
+
rp
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
end
function
c94977269
.
indval
(
e
,
re
,
tp
)
return
tp
~=
e
:
GetHandlerPlayer
()
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