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
wyykak
ygopro
Commits
96a34610
Commit
96a34610
authored
Aug 28, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
642dbc92
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
94 additions
and
85 deletions
+94
-85
ocgcore/operations.cpp
ocgcore/operations.cpp
+20
-18
script/c14731897.lua
script/c14731897.lua
+3
-3
script/c27782503.lua
script/c27782503.lua
+6
-5
script/c29981921.lua
script/c29981921.lua
+6
-5
script/c31904181.lua
script/c31904181.lua
+6
-5
script/c39829561.lua
script/c39829561.lua
+5
-12
script/c440556.lua
script/c440556.lua
+15
-10
script/c51047350.lua
script/c51047350.lua
+2
-1
script/c59297550.lua
script/c59297550.lua
+1
-1
script/c63176202.lua
script/c63176202.lua
+6
-5
script/c64398890.lua
script/c64398890.lua
+6
-5
script/c69025477.lua
script/c69025477.lua
+6
-5
script/c90397998.lua
script/c90397998.lua
+6
-5
script/c95519486.lua
script/c95519486.lua
+6
-5
No files found.
ocgcore/operations.cpp
View file @
96a34610
...
...
@@ -2467,15 +2467,32 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
pduel
->
delete_group
(
targets
);
return
TRUE
;
}
card_set
leave_p
,
destroying
;
for
(
auto
cit
=
targets
->
container
.
begin
();
cit
!=
targets
->
container
.
end
();
++
cit
)
{
(
*
cit
)
->
enable_field_effect
(
FALSE
);
card
*
pcard
=
*
cit
;
if
((
pcard
->
current
.
location
==
LOCATION_MZONE
)
&&
pcard
->
is_status
(
STATUS_BATTLE_DESTROYED
)
&&
!
(
pcard
->
current
.
reason
&
(
REASON_DESTROY
|
REASON_EFFECT
)))
{
pcard
->
current
.
reason
|=
REASON_DESTROY
|
REASON_BATTLE
;
raise_single_event
(
pcard
,
0
,
EVENT_DESTROY
,
pcard
->
current
.
reason_effect
,
pcard
->
current
.
reason
,
pcard
->
current
.
reason_player
,
0
,
0
);
destroying
.
insert
(
pcard
);
}
if
((
pcard
->
current
.
location
&
LOCATION_ONFIELD
)
&&
!
pcard
->
is_status
(
STATUS_SUMMON_DISABLED
))
{
raise_single_event
(
pcard
,
0
,
EVENT_LEAVE_FIELD_P
,
pcard
->
current
.
reason_effect
,
pcard
->
current
.
reason
,
pcard
->
current
.
reason_player
,
0
,
0
);
leave_p
.
insert
(
pcard
);
}
}
adjust_instant
();
if
(
leave_p
.
size
())
raise_event
(
&
leave_p
,
EVENT_LEAVE_FIELD_P
,
reason_effect
,
reason
,
reason_player
,
0
,
0
);
if
(
destroying
.
size
())
raise_event
(
&
destroying
,
EVENT_DESTROY
,
reason_effect
,
reason
,
reason_player
,
0
,
0
);
process_single_event
();
process_instant_event
();
return
FALSE
;
}
case
3
:
{
uint32
redirect
,
dest
,
redirect_seq
;
card_set
leave_p
,
destroying
;
for
(
auto
cit
=
targets
->
container
.
begin
();
cit
!=
targets
->
container
.
end
();
++
cit
)
(
*
cit
)
->
enable_field_effect
(
FALSE
);
adjust_instant
();
for
(
auto
cit
=
targets
->
container
.
begin
();
cit
!=
targets
->
container
.
end
();
++
cit
)
{
card
*
pcard
=
*
cit
;
dest
=
(
pcard
->
operation_param
>>
8
)
&
0xff
;
...
...
@@ -2501,22 +2518,7 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
pcard
->
current
.
reason
|=
REASON_REDIRECT
;
pcard
->
operation_param
=
(
pcard
->
operation_param
&
0xffff0000
)
|
(
redirect
<<
8
)
|
redirect_seq
;
}
if
((
pcard
->
current
.
location
==
LOCATION_MZONE
)
&&
pcard
->
is_status
(
STATUS_BATTLE_DESTROYED
)
&&
!
(
pcard
->
current
.
reason
&
(
REASON_DESTROY
|
REASON_EFFECT
)))
{
pcard
->
current
.
reason
|=
REASON_DESTROY
|
REASON_BATTLE
;
raise_single_event
(
pcard
,
0
,
EVENT_DESTROY
,
pcard
->
current
.
reason_effect
,
pcard
->
current
.
reason
,
pcard
->
current
.
reason_player
,
0
,
0
);
destroying
.
insert
(
pcard
);
}
if
((
pcard
->
current
.
location
&
LOCATION_ONFIELD
)
&&
!
pcard
->
is_status
(
STATUS_SUMMON_DISABLED
))
{
raise_single_event
(
pcard
,
0
,
EVENT_LEAVE_FIELD_P
,
pcard
->
current
.
reason_effect
,
pcard
->
current
.
reason
,
pcard
->
current
.
reason_player
,
0
,
0
);
leave_p
.
insert
(
pcard
);
}
}
if
(
leave_p
.
size
())
raise_event
(
&
leave_p
,
EVENT_LEAVE_FIELD_P
,
reason_effect
,
reason
,
reason_player
,
0
,
0
);
if
(
destroying
.
size
())
raise_event
(
&
destroying
,
EVENT_DESTROY
,
reason_effect
,
reason
,
reason_player
,
0
,
0
);
process_single_event
();
process_instant_event
();
return
FALSE
;
}
case
4
:
{
...
...
script/c14731897.lua
View file @
96a34610
...
...
@@ -16,10 +16,10 @@ function c14731897.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c14731897
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
Is
Controler
(
tp
)
and
chkc
:
Is
Faceup
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c14731897
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
script/c27782503.lua
View file @
96a34610
...
...
@@ -39,7 +39,7 @@ function c27782503.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c27782503
.
repfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
function
c27782503
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -48,13 +48,14 @@ function c27782503.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
27782503
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c27782503
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
HintSelection
(
g
)
g
:
GetFirst
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
else
return
false
end
end
function
c27782503
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
g
:
GetFirst
()
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
local
tc
=
e
:
GetLabelObject
(
)
tc
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
+
REASON_REPLACE
)
end
script/c29981921.lua
View file @
96a34610
...
...
@@ -44,7 +44,7 @@ function c29981921.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c29981921
.
repfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
function
c29981921
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -53,13 +53,14 @@ function c29981921.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
29981921
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c29981921
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
HintSelection
(
g
)
g
:
GetFirst
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
else
return
false
end
end
function
c29981921
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
g
:
GetFirst
()
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
local
tc
=
e
:
GetLabelObject
(
)
tc
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
+
REASON_REPLACE
)
end
script/c31904181.lua
View file @
96a34610
...
...
@@ -24,7 +24,7 @@ function c31904181.dircon(e)
return
Duel
.
IsExistingMatchingCard
(
c31904181
.
cfilter
,
e
:
GetHandler
():
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c31904181
.
repfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
function
c31904181
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -33,13 +33,14 @@ function c31904181.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
31904181
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c31904181
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
HintSelection
(
g
)
g
:
GetFirst
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
else
return
false
end
end
function
c31904181
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
g
:
GetFirst
()
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
local
tc
=
e
:
GetLabelObject
(
)
tc
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
+
REASON_REPLACE
)
end
script/c39829561.lua
View file @
96a34610
...
...
@@ -17,8 +17,9 @@ function c39829561.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetCondition
(
c39829561
.
recon
)
e2
:
SetValue
(
c39829561
.
reval
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
end
function
c39829561
.
filter
(
c
)
...
...
@@ -37,15 +38,7 @@ function c39829561.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c39829561
.
recon
(
e
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_DECK
+
LOCATION_HAND
+
LOCATION_ONFIELD
)
end
function
c39829561
.
reval
(
e
,
c
,
r
)
if
e
:
GetHandler
():
IsOnField
()
then
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
return
LOCATION_REMOVED
else
return
LOCATION_GRAVE
end
else
if
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
then
return
LOCATION_REMOVED
else
return
LOCATION_GRAVE
end
end
local
c
=
e
:
GetHandler
()
return
(
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsReason
(
REASON_BATTLE
))
or
(
c
:
IsLocation
(
LOCATION_DECK
+
LOCATION_HAND
)
and
c
:
IsReason
(
REASON_EFFECT
))
end
script/c440556.lua
View file @
96a34610
--バハムート
・
シャーク
--バハムート
·
シャーク
function
c440556
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
c440556
.
xyzfilter
,
2
)
...
...
@@ -21,15 +21,9 @@ end
function
c440556
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_OATH
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
end
function
c440556
.
filter
(
c
,
e
,
tp
)
return
c
:
IsRankBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsRankBelow
(
3
)
and
c
:
IsAttribute
(
ATTRIBUTE_WATER
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
,
tp
)
end
function
c440556
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
@@ -38,9 +32,20 @@ function c440556.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c440556
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c440556
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
c
=
e
:
GetHandler
()
local
cp
=
c
:
GetControler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
cp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
cp
,
c440556
.
filter
,
cp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
elseif
cp
~=
tp
then
local
cg
=
Duel
.
GetFieldGroup
(
cp
,
LOCATION_EXTRA
,
0
)
Duel
.
ConfirmCards
(
cg
,
tp
)
end
end
script/c51047350.lua
View file @
96a34610
--
`ɡ֥쥤`
--
カード·ブレイカー
function
c51047350
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
script/c59297550.lua
View file @
96a34610
...
...
@@ -3,7 +3,7 @@ function c59297550.initial_effect(c)
--special summon
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
59297550
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_NO_TURN_RESET
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_NO_TURN_RESET
+
EFFECT_FLAG_CHAIN_UNIQUE
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_TRIGGER_O
+
EFFECT_TYPE_FIELD
)
e1
:
SetRange
(
LOCATION_MZONE
)
...
...
script/c63176202.lua
View file @
96a34610
...
...
@@ -50,7 +50,7 @@ function c63176202.spcon(e,c)
and
Duel
.
IsExistingMatchingCard
(
c63176202
.
spfilter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
end
function
c63176202
.
repfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
function
c63176202
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -59,15 +59,16 @@ function c63176202.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
63176202
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c63176202
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
HintSelection
(
g
)
g
:
GetFirst
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
else
return
false
end
end
function
c63176202
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
g
:
GetFirst
()
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
local
tc
=
e
:
GetLabelObject
(
)
tc
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
+
REASON_REPLACE
)
end
function
c63176202
.
aclimit1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
ep
==
tp
or
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
then
return
end
...
...
script/c64398890.lua
View file @
96a34610
...
...
@@ -56,7 +56,7 @@ function c64398890.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c64398890
.
repfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
function
c64398890
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -65,13 +65,14 @@ function c64398890.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
64398890
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c64398890
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
HintSelection
(
g
)
g
:
GetFirst
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
else
return
false
end
end
function
c64398890
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
g
:
GetFirst
()
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
local
tc
=
e
:
GetLabelObject
(
)
tc
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
+
REASON_REPLACE
)
end
script/c69025477.lua
View file @
96a34610
...
...
@@ -23,7 +23,7 @@ function c69025477.dircon(e)
return
Duel
.
IsExistingMatchingCard
(
c69025477
.
cfilter
,
e
:
GetHandler
():
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c69025477
.
repfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
function
c69025477
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -32,13 +32,14 @@ function c69025477.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
69025477
,
0
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c69025477
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
HintSelection
(
g
)
g
:
GetFirst
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
else
return
false
end
end
function
c69025477
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
g
:
GetFirst
()
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
local
tc
=
e
:
GetLabelObject
(
)
tc
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
+
REASON_REPLACE
)
end
script/c90397998.lua
View file @
96a34610
...
...
@@ -56,7 +56,7 @@ function c90397998.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c90397998
.
repfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
function
c90397998
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -65,13 +65,14 @@ function c90397998.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
90397998
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c90397998
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
HintSelection
(
g
)
g
:
GetFirst
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
else
return
false
end
end
function
c90397998
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
g
:
GetFirst
()
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
local
tc
=
e
:
GetLabelObject
(
)
tc
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
+
REASON_REPLACE
)
end
script/c95519486.lua
View file @
96a34610
...
...
@@ -39,7 +39,7 @@ function c95519486.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c95519486
.
repfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x3d
)
and
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
+
STATUS_BATTLE_DESTROYED
)
end
function
c95519486
.
desreptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
...
...
@@ -48,13 +48,14 @@ function c95519486.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
95519486
,
1
))
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESREPLACE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c95519486
.
repfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
c
)
Duel
.
SetTargetCard
(
g
)
e
:
SetLabelObject
(
g
:
GetFirst
())
Duel
.
HintSelection
(
g
)
g
:
GetFirst
():
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
true
)
return
true
else
return
false
end
end
function
c95519486
.
desrepop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
g
:
GetFirst
()
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
+
REASON_REPLACE
)
local
tc
=
e
:
GetLabelObject
(
)
tc
:
SetStatus
(
STATUS_DESTROY_CONFIRMED
,
false
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
+
REASON_REPLACE
)
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