Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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-scripts
Commits
29f8a954
Commit
29f8a954
authored
Mar 10, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
366af9bc
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
65 deletions
+47
-65
c18631392.lua
c18631392.lua
+3
-5
c24382602.lua
c24382602.lua
+0
-8
c27655513.lua
c27655513.lua
+0
-5
c4545854.lua
c4545854.lua
+23
-25
c55461064.lua
c55461064.lua
+2
-2
c60946968.lua
c60946968.lua
+19
-20
No files found.
c18631392.lua
View file @
29f8a954
...
...
@@ -47,10 +47,9 @@ function c18631392.spop(e,tp,eg,ep,ev,re,r,rp,c)
end
function
c18631392
.
anctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
<
3
then
return
false
end
if
not
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
then
return
false
end
local
g
=
Duel
.
GetDecktopGroup
(
tp
,
3
)
local
result
=
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
return
result
and
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
3
)
return
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
local
ac1
=
Duel
.
AnnounceCard
(
tp
)
...
...
@@ -61,8 +60,7 @@ function c18631392.anctg(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
SetOperation
(
c18631392
.
retop
(
ac1
,
ac2
,
ac3
))
end
function
c18631392
.
hfilter
(
c
,
code1
,
code2
,
code3
)
local
code
=
c
:
GetCode
()
return
(
code
==
code1
or
code
==
code2
or
code
==
code3
)
and
c
:
IsAbleToHand
()
return
c
:
IsCode
(
code1
,
code2
,
code3
)
and
c
:
IsAbleToHand
()
end
function
c18631392
.
retop
(
code1
,
code2
,
code3
)
return
...
...
c24382602.lua
View file @
29f8a954
...
...
@@ -67,14 +67,6 @@ function c24382602.atkop(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
tc
:
RegisterEffect
(
e2
)
end
else
local
cg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_DECK
,
0
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
tp
,
cg
)
Duel
.
ShuffleDeck
(
tp
)
cg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_HAND
,
0
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ShuffleHand
(
tp
)
end
end
function
c24382602
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c27655513.lua
View file @
29f8a954
...
...
@@ -27,10 +27,5 @@ function c27655513.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g
:
Select
(
tp
,
2
,
2
,
nil
)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
elseif
Duel
.
IsPlayerCanDiscardDeck
(
tp
,
2
)
then
local
cg
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_DECK
,
0
)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
Duel
.
ConfirmCards
(
tp
,
cg
)
Duel
.
ShuffleDeck
(
tp
)
end
end
c4545854.lua
View file @
29f8a954
...
...
@@ -7,38 +7,36 @@ function c4545854.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--ad up
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
E
VENT_DAMAGE_CALCULATING
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
E
FFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetOperation
(
c4545854
.
atkup
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c4545854
.
adcon
)
e2
:
SetTarget
(
c4545854
.
adtg
)
e2
:
SetValue
(
c4545854
.
adval
)
c
:
RegisterEffect
(
e2
)
--Destroy replace
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetRange
(
LOCATION_FZONE
)
e3
:
SetTarget
(
c4545854
.
desreptg
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
c
:
RegisterEffect
(
e3
)
--Destroy replace
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_DESTROY_REPLACE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetTarget
(
c4545854
.
desreptg
)
c
:
RegisterEffect
(
e4
)
end
function
c4545854
.
adcon
(
e
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
Duel
.
GetAttackTarget
()
end
function
c4545854
.
a
tkup
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c4545854
.
a
dtg
(
e
,
c
)
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
if
not
d
then
return
end
c4545854
.
adup
(
a
,
e
:
GetHandler
())
c4545854
.
adup
(
d
,
e
:
GetHandler
())
return
(
c
==
a
or
c
==
d
)
and
c
:
IsType
(
TYPE_XYZ
)
end
function
c4545854
.
adup
(
c
,
oc
)
if
not
c
:
IsType
(
TYPE_XYZ
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
oc
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetValue
(
c
:
GetRank
()
*
200
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
c
:
RegisterEffect
(
e2
)
function
c4545854
.
adval
(
e
,
c
)
return
c
:
GetRank
()
*
200
end
function
c4545854
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsReason
(
REASON_RULE
)
...
...
c55461064.lua
View file @
29f8a954
...
...
@@ -20,8 +20,8 @@ function c55461064.atkcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
ph
>=
PHASE_BATTLE_START
and
ph
<=
PHASE_BATTLE
and
(
ph
~=
PHASE_DAMAGE
or
Duel
.
IsDamageCalculated
())
end
function
c55461064
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
Is
AbleToGraveAsCost
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
if
chk
==
0
then
return
e
:
GetHandler
():
Is
Discardable
()
end
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
+
REASON_DISCARD
)
end
function
c55461064
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc008
)
...
...
c60946968.lua
View file @
29f8a954
--異界空間-Aゾーン
function
c60946968
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
--atk def
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
E
VENT_DAMAGE_CALCULATING
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
E
FFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetOperation
(
c60946968
.
adval
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e2
:
SetCondition
(
c60946968
.
adcon
)
e2
:
SetTarget
(
c60946968
.
adtg
)
e2
:
SetValue
(
-
300
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
c
:
RegisterEffect
(
e3
)
end
function
c60946968
.
addown
(
c
,
e
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
e1
:
SetValue
(
-
300
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
c
:
RegisterEffect
(
e2
)
end
function
c60946968
.
adval
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
function
c60946968
.
adcon
(
e
)
if
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE_CAL
then
return
false
end
local
d
=
Duel
.
GetAttackTarget
()
if
not
d
then
return
end
if
a
:
IsControler
(
1
-
tp
)
and
d
:
IsSetCard
(
0xc
)
then
c60946968
.
addown
(
a
,
e
)
end
if
d
:
IsControler
(
1
-
tp
)
and
a
:
IsSetCard
(
0xc
)
then
c60946968
.
addown
(
d
,
e
)
end
if
not
d
then
return
false
end
local
tp
=
e
:
GetHandlerPlayer
()
if
d
:
IsControler
(
1
-
tp
)
then
d
=
Duel
.
GetAttacker
()
end
return
d
:
IsSetCard
(
0xc
)
end
function
c60946968
.
adtg
(
e
,
c
)
return
c
==
Duel
.
GetAttacker
()
or
c
==
Duel
.
GetAttackTarget
()
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