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
032cac0a
Commit
032cac0a
authored
Sep 02, 2013
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #600 from sidschingis/master
fix
parents
1ccaf06e
6b4d636f
Changes
44
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
141 additions
and
94 deletions
+141
-94
script/c11819616.lua
script/c11819616.lua
+1
-1
script/c20457551.lua
script/c20457551.lua
+2
-0
script/c22359980.lua
script/c22359980.lua
+1
-1
script/c27770341.lua
script/c27770341.lua
+10
-2
script/c28357177.lua
script/c28357177.lua
+5
-3
script/c28423537.lua
script/c28423537.lua
+1
-0
script/c28912357.lua
script/c28912357.lua
+1
-0
script/c30929786.lua
script/c30929786.lua
+1
-1
script/c34471458.lua
script/c34471458.lua
+1
-1
script/c35183853.lua
script/c35183853.lua
+1
-1
script/c36088082.lua
script/c36088082.lua
+4
-1
script/c42155488.lua
script/c42155488.lua
+3
-2
script/c4259068.lua
script/c4259068.lua
+1
-1
script/c440556.lua
script/c440556.lua
+2
-0
script/c44178886.lua
script/c44178886.lua
+2
-2
script/c47297616.lua
script/c47297616.lua
+0
-1
script/c47660516.lua
script/c47660516.lua
+8
-7
script/c49587034.lua
script/c49587034.lua
+1
-4
script/c50527144.lua
script/c50527144.lua
+16
-14
script/c54306223.lua
script/c54306223.lua
+1
-0
script/c54704216.lua
script/c54704216.lua
+7
-0
script/c56981417.lua
script/c56981417.lua
+4
-3
script/c5818294.lua
script/c5818294.lua
+1
-1
script/c59797187.lua
script/c59797187.lua
+3
-2
script/c6178850.lua
script/c6178850.lua
+4
-2
script/c68786330.lua
script/c68786330.lua
+1
-1
script/c69042950.lua
script/c69042950.lua
+2
-5
script/c69954399.lua
script/c69954399.lua
+1
-1
script/c71315423.lua
script/c71315423.lua
+4
-1
script/c72302403.lua
script/c72302403.lua
+15
-12
script/c72892473.lua
script/c72892473.lua
+1
-1
script/c73414375.lua
script/c73414375.lua
+11
-5
script/c73578229.lua
script/c73578229.lua
+1
-1
script/c75292259.lua
script/c75292259.lua
+1
-1
script/c79965360.lua
script/c79965360.lua
+5
-8
script/c81426505.lua
script/c81426505.lua
+5
-1
script/c83438826.lua
script/c83438826.lua
+4
-3
script/c85562745.lua
script/c85562745.lua
+1
-1
script/c85668449.lua
script/c85668449.lua
+1
-0
script/c88307361.lua
script/c88307361.lua
+1
-1
script/c93599951.lua
script/c93599951.lua
+1
-1
script/c94585852.lua
script/c94585852.lua
+1
-0
script/c99594764.lua
script/c99594764.lua
+1
-0
script/c99902789.lua
script/c99902789.lua
+3
-1
No files found.
script/c11819616.lua
View file @
032cac0a
...
@@ -18,7 +18,7 @@ function c11819616.discon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,7 +18,7 @@ function c11819616.discon(e,tp,eg,ep,ev,re,r,rp)
if
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
e
:
GetHandler
():
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
:
IsExists
(
Card
.
IsOnField
,
1
,
nil
)
and
Duel
.
IsChainNegatable
(
ev
)
return
tg
and
tg
:
IsExists
(
Card
.
IsOnField
,
1
,
nil
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c11819616
.
costfilter
(
c
)
function
c11819616
.
costfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PLANT
)
...
...
script/c20457551.lua
View file @
032cac0a
...
@@ -55,12 +55,14 @@ function c20457551.atkdown(e,tp,eg,ep,ev,re,r,rp)
...
@@ -55,12 +55,14 @@ function c20457551.atkdown(e,tp,eg,ep,ev,re,r,rp)
local
eqc
=
e
:
GetHandler
():
GetEquipTarget
()
local
eqc
=
e
:
GetHandler
():
GetEquipTarget
()
if
Duel
.
GetAttacker
()
~=
eqc
and
Duel
.
GetAttackTarget
()
~=
eqc
then
return
end
if
Duel
.
GetAttacker
()
~=
eqc
and
Duel
.
GetAttackTarget
()
~=
eqc
then
return
end
local
tc
=
eqc
:
GetBattleTarget
()
local
tc
=
eqc
:
GetBattleTarget
()
if
tc
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_DAMAGE_CAL
)
e1
:
SetReset
(
RESET_PHASE
+
RESET_DAMAGE_CAL
)
e1
:
SetValue
(
-
eqc
:
GetLevel
()
*
100
)
e1
:
SetValue
(
-
eqc
:
GetLevel
()
*
100
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
end
end
end
function
c20457551
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c20457551
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
end
if
chk
==
0
then
return
Duel
.
GetCurrentPhase
()
==
PHASE_END
end
...
...
script/c22359980.lua
View file @
032cac0a
...
@@ -20,7 +20,7 @@ function c22359980.initial_effect(c)
...
@@ -20,7 +20,7 @@ function c22359980.initial_effect(c)
--atkchange
--atkchange
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_SET_ATTACK
)
e3
:
SetCode
(
EFFECT_SET_ATTACK
_FINAL
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetTarget
(
c22359980
.
atktg
)
e3
:
SetTarget
(
c22359980
.
atktg
)
...
...
script/c27770341.lua
View file @
032cac0a
...
@@ -25,7 +25,7 @@ function c27770341.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c27770341.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EVENT_DISCARD
)
e4
:
SetCode
(
EVENT_DISCARD
)
e4
:
SetOperation
(
c27770341
.
addcount
)
e4
:
SetOperation
(
c27770341
.
addcount
1
)
Duel
.
RegisterEffect
(
e4
,
0
)
Duel
.
RegisterEffect
(
e4
,
0
)
end
end
end
end
...
@@ -37,7 +37,15 @@ function c27770341.addcount(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,7 +37,15 @@ function c27770341.addcount(e,tp,eg,ep,ev,re,r,rp)
local
c
=
eg
:
GetFirst
()
local
c
=
eg
:
GetFirst
()
while
c
~=
nil
do
while
c
~=
nil
do
local
p
=
c
:
GetControler
()
local
p
=
c
:
GetControler
()
if
c
:
IsRace
(
RACE_DRAGON
)
then
c27770341
[
p
]
=
c27770341
[
p
]
+
1
end
if
c
:
GetPreviousRaceOnField
()
==
RACE_DRAGON
then
c27770341
[
p
]
=
c27770341
[
p
]
+
1
end
c
=
eg
:
GetNext
()
end
end
function
c27770341
.
addcount1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
eg
:
GetFirst
()
while
c
~=
nil
do
local
p
=
c
:
GetControler
()
if
c
:
GetOriginalRace
()
==
RACE_DRAGON
then
c27770341
[
p
]
=
c27770341
[
p
]
+
1
end
c
=
eg
:
GetNext
()
c
=
eg
:
GetNext
()
end
end
end
end
...
...
script/c28357177.lua
View file @
032cac0a
...
@@ -21,8 +21,10 @@ function c28357177.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -21,8 +21,10 @@ function c28357177.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
end
end
function
c28357177
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28357177
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
if
g
:
GetCount
()
>
0
then
if
g
then
g
=
g
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
end
end
end
end
end
script/c28423537.lua
View file @
032cac0a
...
@@ -52,6 +52,7 @@ function c28423537.ntop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -52,6 +52,7 @@ function c28423537.ntop(e,tp,eg,ep,ev,re,r,rp,c)
--
--
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e3
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
...
...
script/c28912357.lua
View file @
032cac0a
...
@@ -44,6 +44,7 @@ function c28912357.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,6 +44,7 @@ function c28912357.operation(e,tp,eg,ep,ev,re,r,rp)
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
SendtoHand
(
g
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
Duel
.
ShuffleDeck
(
tp
)
end
end
end
end
function
c28912357
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c28912357
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c30929786.lua
View file @
032cac0a
...
@@ -5,7 +5,7 @@ function c30929786.initial_effect(c)
...
@@ -5,7 +5,7 @@ function c30929786.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
30929786
,
0
))
e1
:
SetDescription
(
aux
.
Stringid
(
30929786
,
0
))
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetCategory
(
CATEGORY_TOHAND
+
CATEGORY_SEARCH
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetProperty
(
EFFECT_FLAG_CHAIN_UNIQUE
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c30929786
.
thcon
)
e1
:
SetCondition
(
c30929786
.
thcon
)
e1
:
SetCost
(
c30929786
.
thcost
)
e1
:
SetCost
(
c30929786
.
thcost
)
...
...
script/c34471458.lua
View file @
032cac0a
...
@@ -53,7 +53,7 @@ end
...
@@ -53,7 +53,7 @@ end
function
c34471458
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34471458
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)
return
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
(
c
:
IsPreviousPosition
(
POS_FACEUP
)
or
c
:
IsLocation
(
LOCATION_HAND
)
)
end
end
function
c34471458
.
spfilter
(
c
,
e
,
tp
)
function
c34471458
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x31
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0x8
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0x31
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0x8
,
tp
,
false
,
false
)
...
...
script/c35183853.lua
View file @
032cac0a
...
@@ -27,5 +27,5 @@ function c35183853.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -27,5 +27,5 @@ function c35183853.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
function
c35183853
.
aclimit
(
e
,
re
,
tp
)
function
c35183853
.
aclimit
(
e
,
re
,
tp
)
return
re
:
IsActive
Type
(
TYPE_SPELL
+
TYPE_TRAP
)
return
re
:
GetHandler
():
Is
Type
(
TYPE_SPELL
+
TYPE_TRAP
)
end
end
script/c36088082.lua
View file @
032cac0a
...
@@ -35,5 +35,8 @@ function c36088082.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -35,5 +35,8 @@ function c36088082.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c36088082
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c36088082
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Destroy
(
e
:
GetOwner
():
GetBattleTarget
(),
REASON_EFFECT
)
local
tg
=
e
:
GetOwner
():
GetBattleTarget
()
if
tg
then
Duel
.
Destroy
(
tg
,
REASON_EFFECT
)
end
end
end
script/c42155488.lua
View file @
032cac0a
...
@@ -39,7 +39,8 @@ function c42155488.ntop(e,tp,eg,ep,ev,re,r,rp,c)
...
@@ -39,7 +39,8 @@ function c42155488.ntop(e,tp,eg,ep,ev,re,r,rp,c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c42155488
.
dectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c42155488
.
dectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
563
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
563
)
local
rc
=
Duel
.
AnnounceRace
(
tp
,
1
,
0xffffff
)
local
rc
=
Duel
.
AnnounceRace
(
tp
,
1
,
0xffffff
)
e
:
SetLabel
(
rc
)
e
:
SetLabel
(
rc
)
...
@@ -76,4 +77,4 @@ function c42155488.decop(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -76,4 +77,4 @@ function c42155488.decop(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c42155488
.
syncheck
(
e
,
c
)
function
c42155488
.
syncheck
(
e
,
c
)
c
:
AssumeProperty
(
ASSUME_RACE
,
e
:
GetLabel
())
c
:
AssumeProperty
(
ASSUME_RACE
,
e
:
GetLabel
())
end
end
\ No newline at end of file
script/c4259068.lua
View file @
032cac0a
...
@@ -16,7 +16,7 @@ function c4259068.initial_effect(c)
...
@@ -16,7 +16,7 @@ function c4259068.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c4259068
.
costchange
(
e
,
re
,
rp
,
val
)
function
c4259068
.
costchange
(
e
,
re
,
rp
,
val
)
if
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsType
(
TYPE_SPELL
)
and
not
re
:
GetHandler
():
IsCode
(
9236985
)
then
if
re
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
GetHandler
():
IsType
(
TYPE_SPELL
)
and
not
re
:
GetHandler
():
IsCode
(
9236985
)
then
return
0
return
0
else
else
return
val
return
val
...
...
script/c440556.lua
View file @
032cac0a
...
@@ -43,6 +43,8 @@ function c440556.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,6 +43,8 @@ function c440556.spop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
elseif
cp
~=
tp
then
elseif
cp
~=
tp
then
local
cg
=
Duel
.
GetFieldGroup
(
cp
,
LOCATION_EXTRA
,
0
)
local
cg
=
Duel
.
GetFieldGroup
(
cp
,
LOCATION_EXTRA
,
0
)
if
cg
and
cg
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
cg
,
tp
)
Duel
.
ConfirmCards
(
cg
,
tp
)
end
end
end
end
end
script/c44178886.lua
View file @
032cac0a
...
@@ -16,7 +16,6 @@ function c44178886.initial_effect(c)
...
@@ -16,7 +16,6 @@ function c44178886.initial_effect(c)
e2
:
SetDescription
(
aux
.
Stringid
(
44178886
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
44178886
,
1
))
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_END
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c44178886
.
discon
)
e2
:
SetCondition
(
c44178886
.
discon
)
e2
:
SetTarget
(
c44178886
.
distg
)
e2
:
SetTarget
(
c44178886
.
distg
)
e2
:
SetOperation
(
c44178886
.
disop
)
e2
:
SetOperation
(
c44178886
.
disop
)
...
@@ -37,7 +36,8 @@ function c44178886.discon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -37,7 +36,8 @@ function c44178886.discon(e,tp,eg,ep,ev,re,r,rp)
return
tp
==
Duel
.
GetTurnPlayer
()
return
tp
==
Duel
.
GetTurnPlayer
()
end
end
function
c44178886
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c44178886
.
distg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
44178886
)
==
0
end
e
:
GetHandler
():
RegisterFlagEffect
(
44178886
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
,
EFFECT_FLAG_OATH
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
3
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DECKDES
,
nil
,
0
,
tp
,
3
)
end
end
function
c44178886
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c44178886
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c47297616.lua
View file @
032cac0a
...
@@ -91,7 +91,6 @@ function c47297616.opspsum(e,tp,eg,ep,ev,re,r,rp)
...
@@ -91,7 +91,6 @@ function c47297616.opspsum(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
BreakEffect
()
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
script/c47660516.lua
View file @
032cac0a
...
@@ -41,12 +41,13 @@ function c47660516.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -41,12 +41,13 @@ function c47660516.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
tc
))
Duel
.
Overlay
(
sc
,
Group
.
FromCards
(
tc
))
Duel
.
SpecialSummon
(
sc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
sc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
sc
:
CompleteProcedure
()
end
if
Duel
.
GetOverlayCount
(
tp
,
0
,
1
)
~=
0
then
if
Duel
.
GetOverlayCount
(
tp
,
0
,
1
)
~=
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
local
g1
=
Duel
.
GetOverlayGroup
(
tp
,
0
,
1
)
local
g1
=
Duel
.
GetOverlayGroup
(
tp
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
47660516
,
0
))
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
47660516
,
0
))
local
mg2
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
local
mg2
=
g1
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
Overlay
(
sc
,
mg2
)
Duel
.
Overlay
(
sc
,
mg2
)
end
end
end
end
end
script/c49587034.lua
View file @
032cac0a
...
@@ -30,10 +30,7 @@ function c49587034.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -30,10 +30,7 @@ function c49587034.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_OPPO_TURN
,
4
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_STANDBY
+
RESET_OPPO_TURN
,
4
)
e1
:
SetCondition
(
c49587034
.
thcon
)
e1
:
SetCondition
(
c49587034
.
thcon
)
e1
:
SetOperation
(
c49587034
.
thop
)
e1
:
SetOperation
(
c49587034
.
thop
)
if
cp
~=
e
:
GetHandlerPlayer
()
and
ph
~=
PHASE_DRAW
e1
:
SetLabel
(
1
)
then
e1
:
SetLabel
(
2
)
else
e1
:
SetLabel
(
1
)
end
card
:
RegisterEffect
(
e1
)
card
:
RegisterEffect
(
e1
)
e
:
GetHandler
():
RegisterFlagEffect
(
1082946
,
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
,
0
,
3
)
e
:
GetHandler
():
RegisterFlagEffect
(
1082946
,
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
,
0
,
3
)
c49587034
[
e
:
GetHandler
()]
=
e1
c49587034
[
e
:
GetHandler
()]
=
e1
...
...
script/c50527144.lua
View file @
032cac0a
...
@@ -19,19 +19,21 @@ function c50527144.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -19,19 +19,21 @@ function c50527144.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
ShuffleHand
(
tp
)
Duel
.
ShuffleHand
(
tp
)
end
end
function
c50527144
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c50527144
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
c50527144
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
local
tc
=
g
:
GetFirst
()
e1
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
while
tc
do
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetTarget
(
c50527144
.
tgfilter
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
1
)
Duel
.
RegisterEffect
(
e1
,
tp
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
Duel
.
RegisterEffect
(
e2
,
tp
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
end
end
end
function
c50527144
.
tgfilter
(
e
,
c
)
function
c50527144
.
tgfilter
(
c
)
return
(
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x8d
))
or
(
c
:
IsFacedown
()
and
c
:
IsLocation
(
LOCATION_MZONE
))
return
(
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x8d
))
or
(
c
:
IsFacedown
()
and
c
:
IsLocation
(
LOCATION_MZONE
))
end
end
\ No newline at end of file
script/c54306223.lua
View file @
032cac0a
...
@@ -34,6 +34,7 @@ function c54306223.initial_effect(c)
...
@@ -34,6 +34,7 @@ function c54306223.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c54306223
.
atkval
(
e
,
c
)
function
c54306223
.
atkval
(
e
,
c
)
if
c
:
IsCode
(
72677437
)
then
return
0
end
return
c
:
GetCounter
(
0x9
)
*-
500
return
c
:
GetCounter
(
0x9
)
*-
500
end
end
function
c54306223
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c54306223
.
acop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c54704216.lua
View file @
032cac0a
...
@@ -56,6 +56,13 @@ function c54704216.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,6 +56,13 @@ function c54704216.operation(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
e2
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
tc
:
RegisterEffect
(
e2
,
true
)
tc
:
RegisterEffect
(
e2
,
true
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e3
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fc0000
)
e3
:
SetCondition
(
c54704216
.
rcon
)
tc
:
RegisterEffect
(
e3
)
end
end
end
end
function
c54704216
.
rcon
(
e
)
function
c54704216
.
rcon
(
e
)
...
...
script/c56981417.lua
View file @
032cac0a
...
@@ -53,7 +53,8 @@ function c56981417.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -53,7 +53,8 @@ function c56981417.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c56981417
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56981417
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
e
:
GetLabelObject
()
local
te
=
e
:
GetLabelObject
()
if
not
te
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
te
and
te
:
GetHandler
():
IsRelateToEffect
(
e
)
then
local
op
=
te
:
GetOperation
()
local
op
=
te
:
GetOperation
()
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
if
op
then
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
end
end
end
script/c5818294.lua
View file @
032cac0a
...
@@ -20,7 +20,7 @@ end
...
@@ -20,7 +20,7 @@ end
function
c5818294
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c5818294
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
g
:
IsExists
(
c5818294
.
tfilter
,
1
,
nil
,
tp
)
return
g
and
g
:
IsExists
(
c5818294
.
tfilter
,
1
,
nil
,
tp
)
end
end
function
c5818294
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5818294
.
negcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
...
...
script/c59797187.lua
View file @
032cac0a
...
@@ -11,8 +11,9 @@ function c59797187.initial_effect(c)
...
@@ -11,8 +11,9 @@ function c59797187.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c59797187
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c59797187
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetBattleTarget
():
IsRelateToBattle
()
end
local
tg
=
e
:
GetHandler
():
GetBattleTarget
()
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
e
:
GetHandler
():
GetBattleTarget
(),
1
,
0
,
0
)
if
chk
==
0
then
return
tg
and
tg
:
IsRelateToBattle
()
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
tg
,
1
,
0
,
0
)
end
end
function
c59797187
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c59797187
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
...
...
script/c6178850.lua
View file @
032cac0a
...
@@ -47,8 +47,10 @@ function c6178850.value(e,c)
...
@@ -47,8 +47,10 @@ function c6178850.value(e,c)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
)
*
300
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
)
*
300
end
end
function
c6178850
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c6178850
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
local
c
=
e
:
GetHandler
()
and
e
:
GetHandler
():
GetEquipTarget
():
IsReason
(
REASON_BATTLE
)
end
local
tg
=
c
:
GetEquipTarget
()
if
chk
==
0
then
return
c
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
tg
and
tg
:
IsReason
(
REASON_BATTLE
)
end
return
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
6178850
,
0
))
return
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
6178850
,
0
))
end
end
function
c6178850
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6178850
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c68786330.lua
View file @
032cac0a
...
@@ -19,7 +19,7 @@ end
...
@@ -19,7 +19,7 @@ end
function
c68786330
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68786330
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
local
d
=
Duel
.
GetAttackTarget
()
return
d
and
a
:
IsRelateToBattle
()
and
d
:
IsRelateToBattle
()
and
a
:
IsRace
(
RACE_REPTILE
)
and
d
:
IsDefencePos
(
)
return
a
and
d
and
a
:
IsRelateToBattle
()
and
d
:
IsRelateToBattle
()
and
a
:
IsRace
(
RACE_REPTILE
)
and
d
:
IsPosition
(
POS_DEFENCE
)
end
end
function
c68786330
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c68786330
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
script/c69042950.lua
View file @
032cac0a
...
@@ -12,9 +12,6 @@ end
...
@@ -12,9 +12,6 @@ end
function
c69042950
.
mfilter
(
c
,
clv
)
function
c69042950
.
mfilter
(
c
,
clv
)
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
==
clv
return
c
:
IsFaceup
()
and
c
:
GetLevel
()
==
clv
end
end
function
c69042950
.
mfilter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
4
)
end
function
c69042950
.
spfilter
(
c
,
e
,
tp
)
function
c69042950
.
spfilter
(
c
,
e
,
tp
)
local
lv
=
c
:
GetLevel
()
local
lv
=
c
:
GetLevel
()
return
lv
>
0
and
lv
<=
4
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
lv
>
0
and
lv
<=
4
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
@@ -23,7 +20,7 @@ end
...
@@ -23,7 +20,7 @@ end
function
c69042950
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69042950
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
c69042950
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c69042950
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
IsExistingMatchingCard
(
c69042950
.
mfilter2
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
function
c69042950
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69042950
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -34,7 +31,7 @@ function c69042950.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -34,7 +31,7 @@ function c69042950.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummonStep
(
g
:
GetFirst
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummonStep
(
g
:
GetFirst
(),
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
then
if
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
69042950
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
c69042950
.
spfilter
,
1
-
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
1
-
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
1
-
tp
,
c69042950
.
spfilter
,
1
-
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
1
-
tp
)
if
g
:
GetCount
()
~=
0
then
if
g
:
GetCount
()
~=
0
then
...
...
script/c69954399.lua
View file @
032cac0a
...
@@ -87,7 +87,7 @@ function c69954399.destg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -87,7 +87,7 @@ function c69954399.destg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c69954399
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69954399
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
if
ec
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
ec
,
REASON_EFFECT
)
~=
0
then
if
ec
and
ec
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
ec
,
REASON_EFFECT
)
~=
0
then
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
69954400
,
e
,
0
,
0
,
0
,
0
)
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
(),
69954400
,
e
,
0
,
0
,
0
,
0
)
end
end
end
end
...
...
script/c71315423.lua
View file @
032cac0a
...
@@ -57,5 +57,8 @@ function c71315423.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -57,5 +57,8 @@ function c71315423.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
e
:
GetHandler
():
GetEquipTarget
():
GetControler
(),
400
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
e
:
GetHandler
():
GetEquipTarget
():
GetControler
(),
400
)
end
end
function
c71315423
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c71315423
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Damage
(
e
:
GetHandler
():
GetEquipTarget
():
GetControler
(),
400
,
REASON_EFFECT
)
local
tg
=
e
:
GetHandler
():
GetEquipTarget
()
if
tg
then
Duel
.
Damage
(
tg
:
GetControler
(),
400
,
REASON_EFFECT
)
end
end
end
script/c72302403.lua
View file @
032cac0a
...
@@ -8,18 +8,6 @@ function c72302403.initial_effect(c)
...
@@ -8,18 +8,6 @@ function c72302403.initial_effect(c)
e1
:
SetTarget
(
c72302403
.
target
)
e1
:
SetTarget
(
c72302403
.
target
)
e1
:
SetOperation
(
c72302403
.
activate
)
e1
:
SetOperation
(
c72302403
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--cannot attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
c
:
RegisterEffect
(
e2
)
--remain field
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_REMAIN_FIELD
)
c
:
RegisterEffect
(
e3
)
end
end
function
c72302403
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c72302403
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -45,6 +33,21 @@ function c72302403.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,6 +33,21 @@ function c72302403.activate(e,tp,eg,ep,ev,re,r,rp)
if
sg
:
GetCount
()
>
0
then
if
sg
:
GetCount
()
>
0
then
Duel
.
ChangePosition
(
sg
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_DEFENCE
,
POS_FACEUP_DEFENCE
)
Duel
.
ChangePosition
(
sg
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
,
POS_FACEUP_DEFENCE
,
POS_FACEUP_DEFENCE
)
end
end
local
c
=
e
:
GetHandler
()
c
:
CancelToGrave
()
--cannot attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_ATTACK_ANNOUNCE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
c
:
RegisterEffect
(
e2
)
--remain field
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_REMAIN_FIELD
)
c
:
RegisterEffect
(
e3
)
end
end
function
c72302403
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72302403
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
()
return
tp
~=
Duel
.
GetTurnPlayer
()
...
...
script/c72892473.lua
View file @
032cac0a
...
@@ -14,7 +14,7 @@ function c72892473.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -14,7 +14,7 @@ function c72892473.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
h1
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
local
h1
=
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
if
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
h1
=
h1
-
1
end
if
e
:
GetHandler
():
IsLocation
(
LOCATION_HAND
)
then
h1
=
h1
-
1
end
local
h2
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
local
h2
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_HAND
)
return
h1
>
0
and
Duel
.
IsPlayerCanDraw
(
tp
,(
h1
>
0
)
and
h1
or
1
)
and
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
1
)
return
(
h1
+
h2
>
0
)
and
Duel
.
IsPlayerCanDraw
(
tp
,(
h1
>
0
)
and
h1
or
1
)
and
Duel
.
IsPlayerCanDraw
(
1
-
tp
,
1
)
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
PLAYER_ALL
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
PLAYER_ALL
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
PLAYER_ALL
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
PLAYER_ALL
,
1
)
...
...
script/c73414375.lua
View file @
032cac0a
...
@@ -10,19 +10,25 @@ function c73414375.initial_effect(c)
...
@@ -10,19 +10,25 @@ function c73414375.initial_effect(c)
e1
:
SetOperation
(
c73414375
.
operation
)
e1
:
SetOperation
(
c73414375
.
operation
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c73414375
.
filter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
end
function
c73414375
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c73414375
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
g
=
Group
.
CreateGroup
()
local
g
=
Group
.
CreateGroup
()
if
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
73414375
,
1
))
then
if
Duel
.
IsExistingTarget
(
c73414375
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
73414375
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
rg
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
3
,
nil
)
local
rg
=
Duel
.
SelectTarget
(
tp
,
c73414375
.
filter
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
3
,
nil
)
g
:
Merge
(
rg
)
g
:
Merge
(
rg
)
end
end
if
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
1
-
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
73414375
,
1
))
then
if
Duel
.
IsExistingTarget
(
c73414375
.
filter
,
1
-
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
1
-
tp
,
aux
.
Stringid
(
73414375
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_REMOVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_REMOVE
)
local
rg
=
Duel
.
SelectTarget
(
1
-
tp
,
Card
.
IsAbleToRemove
,
1
-
tp
,
0
,
LOCATION_GRAVE
,
1
,
3
,
nil
)
local
rg
=
Duel
.
SelectTarget
(
1
-
tp
,
c73414375
.
filter
,
1
-
tp
,
0
,
LOCATION_GRAVE
,
1
,
3
,
nil
)
g
:
Merge
(
rg
)
if
rg
then
g
:
Merge
(
rg
)
end
end
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
g
:
GetCount
(),
0
,
0
)
end
end
...
...
script/c73578229.lua
View file @
032cac0a
...
@@ -42,7 +42,7 @@ function c73578229.adjustop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -42,7 +42,7 @@ function c73578229.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
ag
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
local
ag
=
g
:
GetMaxGroup
(
Card
.
GetAttack
)
local
preg
=
e
:
GetLabelObject
()
local
preg
=
e
:
GetLabelObject
()
if
ag
:
Equal
(
preg
)
then
return
end
if
ag
and
ag
:
Equal
(
preg
)
then
return
end
preg
:
Clear
()
preg
:
Clear
()
preg
:
Merge
(
ag
)
preg
:
Merge
(
ag
)
Duel
.
AdjustInstantly
(
e
:
GetHandler
())
Duel
.
AdjustInstantly
(
e
:
GetHandler
())
...
...
script/c75292259.lua
View file @
032cac0a
...
@@ -11,7 +11,7 @@ end
...
@@ -11,7 +11,7 @@ end
function
c75292259
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75292259
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
local
bc
=
c
:
GetBattleTarget
()
return
c
==
Duel
.
GetAttacker
()
and
bc
:
IsRelateToBattle
()
return
c
==
Duel
.
GetAttacker
()
and
bc
and
bc
:
IsRelateToBattle
()
and
bc
:
GetBattlePosition
()
==
POS_FACEUP_ATTACK
and
c
:
IsChainAttackable
(
3
)
and
bc
:
GetBattlePosition
()
==
POS_FACEUP_ATTACK
and
c
:
IsChainAttackable
(
3
)
end
end
...
...
script/c79965360.lua
View file @
032cac0a
...
@@ -18,9 +18,9 @@ function c79965360.initial_effect(c)
...
@@ -18,9 +18,9 @@ function c79965360.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--destroy rep
--destroy rep
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_
CONTINUOUS
+
EFFECT_TYPE_
EQUIP
)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetCode
(
EFFECT_
DESTROY_REPLACE
)
e3
:
SetCode
(
EFFECT_
INDESTRUCTABLE_COUNT
)
e3
:
Set
Target
(
c79965360
.
reptg
)
e3
:
Set
Value
(
c79965360
.
valcon
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--destroy
--destroy
...
@@ -54,11 +54,8 @@ function c79965360.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,11 +54,8 @@ function c79965360.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Equip
(
tp
,
e
:
GetHandler
(),
tc
)
Duel
.
Equip
(
tp
,
e
:
GetHandler
(),
tc
)
end
end
end
end
function
c79965360
.
reptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c79965360
.
valcon
(
e
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
r
==
REASON_BATTLE
local
tc
=
c
:
GetEquipTarget
()
if
chk
==
0
then
return
tc
:
IsReason
(
REASON_BATTLE
)
end
return
true
end
end
function
c79965360
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79965360
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
()
==
Duel
.
GetAttacker
()
and
Duel
.
GetAttackTarget
()
return
e
:
GetHandler
():
GetEquipTarget
()
==
Duel
.
GetAttacker
()
and
Duel
.
GetAttackTarget
()
...
...
script/c81426505.lua
View file @
032cac0a
...
@@ -26,7 +26,11 @@ function c81426505.filter3(c)
...
@@ -26,7 +26,11 @@ function c81426505.filter3(c)
return
c
:
IsFacedown
()
and
c
:
IsDestructable
()
return
c
:
IsFacedown
()
and
c
:
IsDestructable
()
end
end
function
c81426505
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c81426505
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDestructable
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter2
,
tp
,
0
,
LOCATION_ONFIELD
,
1
,
nil
)
or
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter3
,
tp
,
0
,
LOCATION_SZONE
,
1
,
nil
)
end
local
t
=
{}
local
t
=
{}
local
p
=
1
local
p
=
1
if
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
t
[
p
]
=
aux
.
Stringid
(
81426505
,
0
)
p
=
p
+
1
end
if
Duel
.
IsExistingMatchingCard
(
c81426505
.
filter1
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
then
t
[
p
]
=
aux
.
Stringid
(
81426505
,
0
)
p
=
p
+
1
end
...
...
script/c83438826.lua
View file @
032cac0a
...
@@ -86,9 +86,10 @@ function c83438826.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -86,9 +86,10 @@ function c83438826.desop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
500
)
e1
:
SetValue
(
-
500
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
eq
:
RegisterEffect
(
e1
)
if
eq
:
RegisterEffect
(
e1
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
end
end
function
c83438826
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c83438826
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
script/c85562745.lua
View file @
032cac0a
...
@@ -19,7 +19,7 @@ function c85562745.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c85562745.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c85562745
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c85562745
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
bit
.
band
(
r
,
REASON_BATTLE
)
==
0
and
re
:
GetHandler
():
GetCode
()
~=
85562745
return
ep
~=
tp
and
bit
.
band
(
r
,
REASON_BATTLE
)
==
0
and
re
and
re
:
GetHandler
():
GetCode
()
~=
85562745
end
end
function
c85562745
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c85562745
.
tg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
...
...
script/c85668449.lua
View file @
032cac0a
...
@@ -44,6 +44,7 @@ function c85668449.lrcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,6 +44,7 @@ function c85668449.lrcon(e,tp,eg,ep,ev,re,r,rp)
if
tp
~=
ep
then
return
false
end
if
tp
~=
ep
then
return
false
end
local
lp
=
Duel
.
GetLP
(
ep
)
local
lp
=
Duel
.
GetLP
(
ep
)
if
lp
<=
ev
then
return
false
end
if
lp
<=
ev
then
return
false
end
if
not
re
then
return
false
end
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
rc
:
IsRace
(
RACE_PSYCHO
)
return
rc
:
IsRace
(
RACE_PSYCHO
)
end
end
...
...
script/c88307361.lua
View file @
032cac0a
...
@@ -71,7 +71,7 @@ function c88307361.discon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -71,7 +71,7 @@ function c88307361.discon(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
then
return
false
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
tg
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
return
tg
:
IsContains
(
c
)
and
Duel
.
IsChainNegatable
(
ev
)
return
tg
and
tg
:
IsContains
(
c
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c88307361
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c88307361
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
e
:
GetHandler
(),
RACE_FISH
)
end
if
chk
==
0
then
return
Duel
.
CheckReleaseGroup
(
tp
,
Card
.
IsRace
,
1
,
e
:
GetHandler
(),
RACE_FISH
)
end
...
...
script/c93599951.lua
View file @
032cac0a
...
@@ -28,6 +28,6 @@ function c93599951.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -28,6 +28,6 @@ function c93599951.activate(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsDefencePos
()
then
if
tc
:
IsDefencePos
()
then
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_ATTACK
)
Duel
.
ChangePosition
(
tc
,
POS_FACEUP_ATTACK
)
end
end
Duel
.
Replac
eAttacker
(
tc
)
Duel
.
Chang
eAttacker
(
tc
)
end
end
end
end
script/c94585852.lua
View file @
032cac0a
...
@@ -32,6 +32,7 @@ function c94585852.initial_effect(c)
...
@@ -32,6 +32,7 @@ function c94585852.initial_effect(c)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
function
c94585852
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94585852
.
repcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
then
return
false
end
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
return
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
and
rc
:
IsSetCard
(
0x45
)
and
rc
:
IsType
(
TYPE_MONSTER
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_STANDBY
and
rc
:
IsSetCard
(
0x45
)
and
rc
:
IsType
(
TYPE_MONSTER
)
end
end
...
...
script/c99594764.lua
View file @
032cac0a
...
@@ -25,6 +25,7 @@ function c99594764.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -25,6 +25,7 @@ function c99594764.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c99594764
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99594764
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
eqc
=
e
:
GetHandler
():
GetEquipTarget
()
local
eqc
=
e
:
GetHandler
():
GetEquipTarget
()
if
not
eqc
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c99594764
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
eqc
:
GetRace
(),
eqc
:
GetAttribute
())
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c99594764
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
,
eqc
:
GetRace
(),
eqc
:
GetAttribute
())
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
...
...
script/c99902789.lua
View file @
032cac0a
...
@@ -14,7 +14,9 @@ function c99902789.initial_effect(c)
...
@@ -14,7 +14,9 @@ function c99902789.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c99902789
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99902789
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
CheckEvent
(
EVENT_ATTACK_ANNOUNCE
)
and
Duel
.
GetAttacker
():
IsControler
(
tp
)
and
Duel
.
GetAttackTarget
()
~=
nil
local
a
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttackTarget
()
return
Duel
.
CheckEvent
(
EVENT_ATTACK_ANNOUNCE
)
and
at
and
(
a
and
a
:
IsControler
(
tp
)
or
at
:
IsControler
(
tp
))
and
ep
~=
tp
and
re
:
GetActiveType
()
==
TYPE_TRAP
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
and
ep
~=
tp
and
re
:
GetActiveType
()
==
TYPE_TRAP
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c99902789
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c99902789
.
discost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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