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
b84b75a7
Commit
b84b75a7
authored
Dec 21, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHASE_BATTLE_START
parent
b44a5b70
Changes
41
Hide whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
43 additions
and
43 deletions
+43
-43
c15552258.lua
c15552258.lua
+1
-1
c19763315.lua
c19763315.lua
+1
-1
c26509612.lua
c26509612.lua
+1
-1
c27660735.lua
c27660735.lua
+1
-1
c29307554.lua
c29307554.lua
+1
-1
c34710660.lua
c34710660.lua
+1
-1
c37055344.lua
c37055344.lua
+2
-2
c3758046.lua
c3758046.lua
+1
-1
c4239451.lua
c4239451.lua
+1
-1
c4290468.lua
c4290468.lua
+1
-1
c44035031.lua
c44035031.lua
+1
-1
c47819246.lua
c47819246.lua
+1
-1
c48422921.lua
c48422921.lua
+1
-1
c4906301.lua
c4906301.lua
+1
-1
c51865604.lua
c51865604.lua
+1
-1
c52085072.lua
c52085072.lua
+1
-1
c57069605.lua
c57069605.lua
+1
-1
c59546797.lua
c59546797.lua
+1
-1
c59627393.lua
c59627393.lua
+1
-1
c60992364.lua
c60992364.lua
+1
-1
c62878208.lua
c62878208.lua
+1
-1
c64268668.lua
c64268668.lua
+1
-1
c67381587.lua
c67381587.lua
+1
-1
c67957315.lua
c67957315.lua
+1
-1
c68819554.lua
c68819554.lua
+1
-1
c71417170.lua
c71417170.lua
+1
-1
c72053645.lua
c72053645.lua
+1
-1
c79205581.lua
c79205581.lua
+2
-2
c81167171.lua
c81167171.lua
+1
-1
c81210420.lua
c81210420.lua
+1
-1
c86778566.lua
c86778566.lua
+1
-1
c87567063.lua
c87567063.lua
+1
-1
c88305978.lua
c88305978.lua
+1
-1
c88482761.lua
c88482761.lua
+1
-1
c8964854.lua
c8964854.lua
+1
-1
c89914395.lua
c89914395.lua
+1
-1
c91677585.lua
c91677585.lua
+1
-1
c9365703.lua
c9365703.lua
+1
-1
c93717133.lua
c93717133.lua
+1
-1
c94634433.lua
c94634433.lua
+1
-1
c98585345.lua
c98585345.lua
+1
-1
No files found.
c15552258.lua
View file @
b84b75a7
...
...
@@ -10,7 +10,7 @@ function c15552258.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c15552258
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
()
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
tp
~=
Duel
.
GetTurnPlayer
()
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c15552258
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
...
...
c19763315.lua
View file @
b84b75a7
...
...
@@ -13,7 +13,7 @@ function c19763315.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_BP_TWICE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
if
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
then
if
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
then
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
e1
:
SetCondition
(
c19763315
.
bpcon
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
+
RESET_OPPO_TURN
,
2
)
...
...
c26509612.lua
View file @
b84b75a7
...
...
@@ -11,7 +11,7 @@ function c26509612.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c26509612
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c26509612
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
74711057
)
...
...
c27660735.lua
View file @
b84b75a7
...
...
@@ -13,7 +13,7 @@ function c27660735.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c27660735
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
IsAbleToEnterBP
()
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
IsAbleToEnterBP
()
or
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
)
end
function
c27660735
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
c29307554.lua
View file @
b84b75a7
...
...
@@ -34,7 +34,7 @@ function c29307554.checkop(e,tp,eg,ep,ev,re,r,rp)
end
function
c29307554
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFlagEffect
(
tp
,
29307554
)
~=
0
and
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
IsAbleToEnterBP
()
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
)
and
(
Duel
.
IsAbleToEnterBP
()
or
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
)
end
function
c29307554
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelAbove
(
8
)
and
c
:
GetEffectCount
(
EFFECT_EXTRA_ATTACK
)
==
0
...
...
c34710660.lua
View file @
b84b75a7
...
...
@@ -13,7 +13,7 @@ function c34710660.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c34710660
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c34710660
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
c37055344.lua
View file @
b84b75a7
...
...
@@ -21,7 +21,7 @@ function c37055344.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c37055344
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c37055344
.
filter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x8d
)
and
c
:
IsCanTurnSet
()
...
...
@@ -44,7 +44,7 @@ function c37055344.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local
b1
=
Duel
.
IsExistingTarget
(
c37055344
.
filter1
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c37055344
.
filter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
local
b2
=
Duel
.
IsExistingTarget
(
c37055344
.
filter3
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
if
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
if
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
(
b1
or
b2
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
37055344
,
3
))
then
local
op
=
0
if
b1
and
b2
then
...
...
c3758046.lua
View file @
b84b75a7
...
...
@@ -29,7 +29,7 @@ function c3758046.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c3758046
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
IsAbleToEnterBP
()
or
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c3758046
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
c4239451.lua
View file @
b84b75a7
...
...
@@ -46,7 +46,7 @@ function c4239451.adop1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c4239451
.
adcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
Duel
.
GetCurrentChain
()
==
0
return
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
Duel
.
GetCurrentChain
()
==
0
end
function
c4239451
.
adtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
end
...
...
c4290468.lua
View file @
b84b75a7
...
...
@@ -53,7 +53,7 @@ function c4290468.atkop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
end
function
c4290468
.
dacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
e
:
GetHandler
():
GetAttackedGroupCount
()
~=
0
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
e
:
GetHandler
():
GetAttackedGroupCount
()
~=
0
and
Duel
.
GetAttacker
()
==
nil
and
Duel
.
GetCurrentChain
()
==
0
end
function
c4290468
.
dacost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c44035031.lua
View file @
b84b75a7
...
...
@@ -41,7 +41,7 @@ function c44035031.atkop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
end
function
c44035031
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c44035031
.
postg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsDefencePos
()
end
...
...
c47819246.lua
View file @
b84b75a7
...
...
@@ -70,7 +70,7 @@ function c47819246.atkval(e,c)
return
c
:
GetRank
()
*
100
end
function
c47819246
.
mtcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsType
(
TYPE_EQUIP
)
and
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
e
:
GetHandler
():
IsType
(
TYPE_EQUIP
)
and
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c47819246
.
mtcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
c48422921.lua
View file @
b84b75a7
...
...
@@ -11,7 +11,7 @@ function c48422921.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c48422921
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
IsAbleToEnterBP
()
or
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c48422921
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
...
...
c4906301.lua
View file @
b84b75a7
...
...
@@ -13,7 +13,7 @@ function c4906301.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c4906301
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
IsAbleToEnterBP
()
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
IsAbleToEnterBP
()
or
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
)
end
function
c4906301
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
c51865604.lua
View file @
b84b75a7
...
...
@@ -47,7 +47,7 @@ function c51865604.spfilter(c,e,tp)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeEffectTarget
(
e
)
end
function
c51865604
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
eg
:
IsExists
(
c51865604
.
spfilter
,
1
,
nil
,
e
,
tp
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
eg
:
IsExists
(
c51865604
.
spfilter
,
1
,
nil
,
e
,
tp
)
end
function
c51865604
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
c52085072.lua
View file @
b84b75a7
...
...
@@ -54,7 +54,7 @@ function c52085072.antarget(e,c)
return
c
~=
e
:
GetHandler
()
end
function
c52085072
.
btcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
(
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
())
end
function
c52085072
.
btcfilter
(
c
)
...
...
c57069605.lua
View file @
b84b75a7
...
...
@@ -18,7 +18,7 @@ function c57069605.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_SKIP_BP
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
0
,
1
)
if
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
then
if
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
then
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
e1
:
SetCondition
(
c57069605
.
skipcon
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
+
RESET_OPPO_TURN
,
2
)
...
...
c59546797.lua
View file @
b84b75a7
...
...
@@ -28,7 +28,7 @@ function c59546797.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c59546797
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
not
Duel
.
CheckTiming
(
TIMING_BATTLE_START
+
TIMING_BATTLE_END
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
not
Duel
.
CheckTiming
(
TIMING_BATTLE_START
+
TIMING_BATTLE_END
)
end
function
c59546797
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c59627393.lua
View file @
b84b75a7
...
...
@@ -20,7 +20,7 @@ c59627393.xyz_number=105
function
c59627393
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttackTarget
()
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
at
and
((
a
:
IsControler
(
tp
)
and
a
:
IsOnField
()
and
a
:
IsSetCard
(
0x84
))
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
at
and
((
a
:
IsControler
(
tp
)
and
a
:
IsOnField
()
and
a
:
IsSetCard
(
0x84
))
or
(
at
:
IsControler
(
tp
)
and
at
:
IsOnField
()
and
at
:
IsFaceup
()
and
at
:
IsSetCard
(
0x84
)))
end
function
c59627393
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c60992364.lua
View file @
b84b75a7
...
...
@@ -98,7 +98,7 @@ function c60992364.eqlimit(e,c)
return
c
==
e
:
GetLabelObject
()
end
function
c60992364
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
Duel
.
GetCurrentChain
()
==
0
return
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
Duel
.
GetCurrentChain
()
==
0
end
function
c60992364
.
atcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToGraveAsCost
()
end
...
...
c62878208.lua
View file @
b84b75a7
...
...
@@ -12,7 +12,7 @@ function c62878208.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c62878208
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c62878208
.
filter1
(
c
,
e
,
tp
)
local
ec
=
c
:
GetEquipTarget
()
...
...
c64268668.lua
View file @
b84b75a7
...
...
@@ -18,7 +18,7 @@ end
function
c64268668
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
((
a
and
a
:
IsControler
(
tp
)
and
a
:
IsFaceup
()
and
a
:
IsCode
(
64268668
))
or
(
d
and
d
:
IsControler
(
tp
)
and
d
:
IsFaceup
()
and
d
:
IsCode
(
64268668
)))
end
...
...
c67381587.lua
View file @
b84b75a7
...
...
@@ -20,7 +20,7 @@ function c67381587.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c67381587
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsPosition
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
,
POS_FACEDOWN_DEFENCE
)
end
function
c67381587
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c67957315.lua
View file @
b84b75a7
...
...
@@ -14,7 +14,7 @@ function c67957315.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c67957315
.
adcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
Duel
.
GetCurrentChain
()
==
0
return
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
Duel
.
GetCurrentChain
()
==
0
and
(
e
:
GetHandler
()
==
Duel
.
GetAttacker
()
or
e
:
GetHandler
()
==
Duel
.
GetAttackTarget
())
end
function
c67957315
.
cfilter
(
c
)
...
...
c68819554.lua
View file @
b84b75a7
...
...
@@ -56,7 +56,7 @@ function c68819554.negop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c68819554
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c68819554
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c71417170.lua
View file @
b84b75a7
...
...
@@ -11,7 +11,7 @@ function c71417170.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c71417170
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c71417170
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDefencePos
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
c72053645.lua
View file @
b84b75a7
...
...
@@ -25,7 +25,7 @@ function c72053645.operation(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_BP_TWICE
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
if
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
then
if
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
then
e1
:
SetLabel
(
Duel
.
GetTurnCount
())
e1
:
SetCondition
(
c72053645
.
bpcon
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_BATTLE
+
RESET_SELF_TURN
,
2
)
...
...
c79205581.lua
View file @
b84b75a7
...
...
@@ -21,7 +21,7 @@ end
function
c79205581
.
cost1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
79205581
,
1
))
then
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
79205581
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
e
:
GetHandler
())
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
...
...
@@ -35,7 +35,7 @@ function c79205581.operation1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c79205581
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
function
c79205581
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
e
:
GetHandler
())
end
...
...
c81167171.lua
View file @
b84b75a7
...
...
@@ -38,7 +38,7 @@ function c81167171.clear(e,tp,eg,ep,ev,re,r,rp)
c81167171
[
1
]
=
false
end
function
c81167171
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c81167171
[
tp
]
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
c81167171
[
tp
]
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c81167171
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
c81210420.lua
View file @
b84b75a7
...
...
@@ -12,7 +12,7 @@ function c81210420.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c81210420
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c81210420
.
filter
(
c
)
return
not
c
:
IsType
(
TYPE_TOKEN
)
...
...
c86778566.lua
View file @
b84b75a7
...
...
@@ -10,7 +10,7 @@ function c86778566.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c86778566
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c86778566
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
end
...
...
c87567063.lua
View file @
b84b75a7
...
...
@@ -13,7 +13,7 @@ function c87567063.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c87567063
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c87567063
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsControlerCanBeChanged
()
end
...
...
c88305978.lua
View file @
b84b75a7
...
...
@@ -15,7 +15,7 @@ function c88305978.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c88305978
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
0
end
function
c88305978
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c88482761.lua
View file @
b84b75a7
...
...
@@ -61,7 +61,7 @@ function c88482761.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c88482761
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
not
Duel
.
CheckTiming
(
TIMING_BATTLE_START
+
TIMING_BATTLE_END
)
end
function
c88482761
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c8964854.lua
View file @
b84b75a7
...
...
@@ -12,7 +12,7 @@ function c8964854.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c8964854
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c8964854
.
filter
(
c
,
e
,
tp
)
return
c
:
GetAttackAnnouncedCount
()
>
0
and
Duel
.
IsExistingMatchingCard
(
c8964854
.
eqfilter
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
e
,
tp
,
c
)
...
...
c89914395.lua
View file @
b84b75a7
...
...
@@ -11,7 +11,7 @@ function c89914395.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c89914395
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsAbleToEnterBP
()
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
IsAbleToEnterBP
()
or
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c89914395
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x4b
)
and
not
c
:
IsHasEffect
(
EFFECT_EXTRA_ATTACK
)
...
...
c91677585.lua
View file @
b84b75a7
...
...
@@ -12,7 +12,7 @@ function c91677585.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c91677585
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
GetTurnPlayer
()
==
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c91677585
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
...
...
c9365703.lua
View file @
b84b75a7
...
...
@@ -24,7 +24,7 @@ function c9365703.sumop(e,tp,eg,ep,ev,re,r,rp)
end
function
c9365703
.
dacon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
CheckTiming
(
TIMING_BATTLE_START
)
or
Duel
.
CheckTiming
(
TIMING_BATTLE_END
)
then
return
false
end
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
Duel
.
GetCurrentChain
()
==
0
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
Duel
.
GetCurrentChain
()
==
0
and
e
:
GetHandler
():
GetFlagEffect
(
9365703
)
~=
0
end
function
c9365703
.
daop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c93717133.lua
View file @
b84b75a7
...
...
@@ -32,7 +32,7 @@ function c93717133.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c93717133
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
function
c93717133
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
...
...
c94634433.lua
View file @
b84b75a7
...
...
@@ -12,7 +12,7 @@ function c94634433.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c94634433
.
sccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c94634433
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsSynchroSummonable
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
nil
)
end
...
...
c98585345.lua
View file @
b84b75a7
...
...
@@ -25,7 +25,7 @@ end
c98585345
.
lvdncount
=
1
c98585345
.
lvdn
=
{
33776734
}
function
c98585345
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
~=
tp
and
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
return
Duel
.
GetTurnPlayer
()
~=
tp
and
(
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
)
end
function
c98585345
.
descost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
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