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
YGOPRO-520DIY
ygopro
Commits
45ec8c6b
Commit
45ec8c6b
authored
Feb 25, 2014
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #698 from sidschingis/master
fix
parents
31c25bca
beb52f29
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
22 deletions
+25
-22
script/c44887817.lua
script/c44887817.lua
+11
-11
script/c49678559.lua
script/c49678559.lua
+7
-7
script/c51196805.lua
script/c51196805.lua
+1
-0
script/c53670497.lua
script/c53670497.lua
+1
-0
script/c71921856.lua
script/c71921856.lua
+1
-1
script/c83438826.lua
script/c83438826.lua
+4
-3
No files found.
script/c44887817.lua
View file @
45ec8c6b
...
...
@@ -29,16 +29,6 @@ end
function
c44887817
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
Duel
.
CheckNormalSummonActivity
(
tp
)
end
local
c
=
e
:
GetHandler
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
(
e1
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
function
c44887817
.
filter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_PLANT
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
@@ -57,7 +47,17 @@ function c44887817.operation(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
e
)
then
if
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
==
0
then
return
end
c
:
SetCardTarget
(
tc
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_END
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
(
e1
)
e2
:
SetCode
(
EFFECT_CANNOT_MSET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
function
c44887817
.
dfilter
(
c
,
sg
)
return
sg
:
IsContains
(
c
)
...
...
script/c49678559.lua
View file @
45ec8c6b
...
...
@@ -16,13 +16,13 @@ function c49678559.initial_effect(c)
e1
:
SetOperation
(
c49678559
.
operation
)
c
:
RegisterEffect
(
e1
)
--destroy replace
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
1
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e
1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e
1
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetTarget
(
c49678559
.
reptg
)
c
:
RegisterEffect
(
e
1
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e
2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e
2
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetTarget
(
c49678559
.
reptg
)
c
:
RegisterEffect
(
e
2
)
end
c49678559
.
xyz_number
=
102
function
c49678559
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c51196805.lua
View file @
45ec8c6b
...
...
@@ -65,4 +65,5 @@ function c51196805.rmop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
ac
)
Duel
.
DisableShuffleCheck
()
Duel
.
Remove
(
g
,
POS_FACEDOWN
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
script/c53670497.lua
View file @
45ec8c6b
...
...
@@ -4,6 +4,7 @@ function c53670497.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetTarget
(
c53670497
.
target1
)
e1
:
SetOperation
(
c53670497
.
activate
)
c
:
RegisterEffect
(
e1
)
...
...
script/c71921856.lua
View file @
45ec8c6b
...
...
@@ -33,7 +33,7 @@ function c71921856.initial_effect(c)
end
c71921856
.
xyz_number
=
79
function
c71921856
.
filter
(
c
)
return
c
:
IsSetCard
(
0x84
)
return
c
:
IsSetCard
(
0x84
)
and
c
:
IsType
(
TYPE_MONSTER
)
end
function
c71921856
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c71921856
.
filter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
...
...
script/c83438826.lua
View file @
45ec8c6b
...
...
@@ -77,15 +77,16 @@ function c83438826.desop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
eq
=
c
:
GetEquipTarget
()
if
not
c
:
IsRelateToEffect
(
e
)
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFaceup
()
or
eq
:
IsImmuneToEffect
(
e
)
or
not
eq
:
IsAttackAbove
(
500
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
or
eq
:
IsImmuneToEffect
(
e
)
or
not
eq
:
IsAttackAbove
(
500
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
500
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
eq
:
RegisterEffect
(
e1
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
function
c83438826
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
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