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
nanahira
ygopro
Commits
b47962f2
Commit
b47962f2
authored
Apr 21, 2013
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #496 from luffySAMA/1
fix
parents
61834b16
c9325ff4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
45 deletions
+46
-45
script/c21044178.lua
script/c21044178.lua
+1
-1
script/c21702241.lua
script/c21702241.lua
+1
-0
script/c22110647.lua
script/c22110647.lua
+1
-0
script/c22842214.lua
script/c22842214.lua
+3
-3
script/c29228350.lua
script/c29228350.lua
+1
-1
script/c47297616.lua
script/c47297616.lua
+1
-1
script/c74860293.lua
script/c74860293.lua
+37
-38
script/c81426505.lua
script/c81426505.lua
+1
-1
No files found.
script/c21044178.lua
View file @
b47962f2
...
...
@@ -39,7 +39,7 @@ function c21044178.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c21044178
.
aclimit
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
,
1
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c21044178
.
aclimit
(
e
,
re
,
tp
)
...
...
script/c21702241.lua
View file @
b47962f2
...
...
@@ -21,6 +21,7 @@ function c21702241.initial_effect(c)
e3
:
SetDescription
(
aux
.
Stringid
(
21702241
,
0
))
e3
:
SetCategory
(
CATEGORY_DAMAGE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCode
(
EVENT_CONTROL_CHANGED
)
e3
:
SetCondition
(
c21702241
.
damcon
)
...
...
script/c22110647.lua
View file @
b47962f2
...
...
@@ -69,6 +69,7 @@ function c22110647.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
g
,
REASON_COST
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
...
...
script/c22842214.lua
View file @
b47962f2
...
...
@@ -69,10 +69,10 @@ function c22842214.eqfilter(c,ec)
end
function
c22842214
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
c
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
c
)
end
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
22842214
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
c
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c22842214
.
eqfilter
,
tp
,
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
1
,
nil
,
c
):
GetFirst
()
e
:
SetLabelObject
(
tc
)
return
true
else
return
false
end
...
...
@@ -81,5 +81,5 @@ function c22842214.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
e
:
GetLabelObject
(),
REASON_EFFECT
+
REASON_REPLACE
)
end
function
c22842214
.
atcon
(
e
)
return
Duel
.
IsExistingMatchingCard
(
c22842214
.
eqfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_SZONE
,
0
,
1
,
nil
,
e
:
GetHandler
())
return
Duel
.
IsExistingMatchingCard
(
c22842214
.
eqfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_SZONE
,
LOCATION_SZONE
,
1
,
nil
,
e
:
GetHandler
())
end
script/c29228350.lua
View file @
b47962f2
...
...
@@ -13,7 +13,7 @@ function c29228350.initial_effect(c)
end
function
c29228350
.
filter
(
c
)
local
ec
=
c
:
GetEquipTarget
()
return
ec
and
c
:
IsCode
(
48568
0
32
)
and
ec
:
IsCode
(
12079734
)
return
ec
and
c
:
IsCode
(
48568
4
32
)
and
ec
:
IsCode
(
12079734
)
end
function
c29228350
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_SZONE
)
and
c29228350
.
filter
(
chkc
)
end
...
...
script/c47297616.lua
View file @
b47962f2
...
...
@@ -53,7 +53,7 @@ function c47297616.tgdisable(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c47297616
.
opdisable
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsFaceup
()
or
c
:
GetDefence
()
<
500
or
c
:
GetAttack
()
<
500
or
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
if
not
c
:
IsFaceup
()
or
c
:
GetDefence
()
<
500
or
c
:
GetAttack
()
<
500
or
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetCurrentChain
()
~=
ev
+
1
or
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
end
if
Duel
.
NegateActivation
(
ev
)
then
...
...
script/c74860293.lua
View file @
b47962f2
--ジャンク·デストロイヤー
function
c74860293
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
c74860293
.
tfilter
,
aux
.
NonTuner
(
nil
),
1
)
c
:
EnableReviveLimit
()
--atkup
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
74860293
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c74860293
.
con
)
e1
:
SetTarget
(
c74860293
.
tg
)
e1
:
SetOperation
(
c74860293
.
op
)
c
:
RegisterEffect
(
e1
)
end
function
c74860293
.
tfilter
(
c
)
local
code
=
c
:
GetCode
()
return
code
==
63977008
or
code
==
20932152
end
function
c74860293
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
end
function
c74860293
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsDestructable
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
mc
=
e
:
GetHandler
():
GetMaterialCount
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
mc
-
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c74860293
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
HintSelection
(
sg
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
end
--ジャンク·デストロイヤー
function
c74860293
.
initial_effect
(
c
)
--synchro summon
aux
.
AddSynchroProcedure
(
c
,
c74860293
.
tfilter
,
aux
.
NonTuner
(
nil
),
1
)
c
:
EnableReviveLimit
()
--atkup
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
74860293
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c74860293
.
con
)
e1
:
SetTarget
(
c74860293
.
tg
)
e1
:
SetOperation
(
c74860293
.
op
)
c
:
RegisterEffect
(
e1
)
end
function
c74860293
.
tfilter
(
c
)
local
code
=
c
:
GetCode
()
return
code
==
63977008
or
code
==
20932152
end
function
c74860293
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
end
function
c74860293
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
chkc
:
IsDestructable
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
local
mc
=
e
:
GetHandler
():
GetMaterialCount
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsDestructable
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
mc
-
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
end
function
c74860293
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
sg
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
end
script/c81426505.lua
View file @
b47962f2
...
...
@@ -14,7 +14,7 @@ function c81426505.confilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
end
function
c81426505
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c81426505
.
confilter
,
tp
,
LOCATION_
ONFIELD
,
0
,
3
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c81426505
.
confilter
,
tp
,
LOCATION_
MZONE
,
0
,
3
,
nil
)
end
function
c81426505
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsDestructable
()
...
...
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