Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
339d756b
Commit
339d756b
authored
Jan 17, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recon
parent
8d2f4a33
Changes
19
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
2099 additions
and
3022 deletions
+2099
-3022
gframe/duelclient.cpp
gframe/duelclient.cpp
+2056
-138
gframe/duelclient.h
gframe/duelclient.h
+3
-0
gframe/event_handler.cpp
gframe/event_handler.cpp
+0
-3
gframe/game.cpp
gframe/game.cpp
+11
-6
gframe/game.h
gframe/game.h
+1
-14
gframe/menu_handler.cpp
gframe/menu_handler.cpp
+0
-49
gframe/message.cpp
gframe/message.cpp
+0
-2784
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+3
-1
ocgcore/processor.cpp
ocgcore/processor.cpp
+0
-2
script/c2067935.lua
script/c2067935.lua
+1
-1
script/c21768554.lua
script/c21768554.lua
+1
-1
script/c24694698.lua
script/c24694698.lua
+10
-13
script/c43385557.lua
script/c43385557.lua
+4
-1
script/c52971944.lua
script/c52971944.lua
+4
-4
script/c53540729.lua
script/c53540729.lua
+1
-1
script/c56769674.lua
script/c56769674.lua
+1
-1
script/c66957584.lua
script/c66957584.lua
+1
-1
script/c73262676.lua
script/c73262676.lua
+1
-1
script/c74701381.lua
script/c74701381.lua
+1
-1
No files found.
gframe/duelclient.cpp
View file @
339d756b
This diff is collapsed.
Click to expand it.
gframe/duelclient.h
View file @
339d756b
...
...
@@ -24,6 +24,8 @@ private:
static
char
duel_client_read
[
0x2000
];
static
char
duel_client_write
[
0x2000
];
static
bool
is_closing
;
static
int
select_hint
;
static
wchar_t
event_string
[
128
];
public:
static
bool
StartClient
(
unsigned
int
ip
,
unsigned
short
port
,
bool
create_game
=
true
);
static
void
StopClient
(
bool
is_exiting
=
false
);
...
...
@@ -31,6 +33,7 @@ public:
static
void
ClientEvent
(
bufferevent
*
bev
,
short
events
,
void
*
ctx
);
static
int
ClientThread
(
void
*
param
);
static
void
HandleSTOCPacketLan
(
char
*
data
,
unsigned
int
len
);
static
int
ClientAnalyze
(
char
*
msg
,
unsigned
int
len
);
static
void
SetResponseI
(
int
respI
);
static
void
SetResponseB
(
unsigned
char
*
respB
,
unsigned
char
len
);
static
void
SendPacketToServer
(
unsigned
char
proto
)
{
...
...
gframe/event_handler.cpp
View file @
339d756b
...
...
@@ -1265,9 +1265,6 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
}
break
;
}
case
irr
:
:
EET_USER_EVENT
:
{
break
;
}
}
return
false
;
}
...
...
gframe/game.cpp
View file @
339d756b
...
...
@@ -161,23 +161,28 @@ bool Game::Initialize() {
imgCard
=
env
->
addImage
(
rect
<
s32
>
(
9
,
9
,
187
,
262
),
wCardImg
);
imgCard
->
setUseAlphaChannel
(
true
);
//phase
btnDP
=
env
->
addButton
(
rect
<
s32
>
(
475
,
310
,
525
,
330
),
0
,
-
1
,
L"DP"
);
wPhase
=
env
->
addWindow
(
rect
<
s32
>
(
475
,
310
,
850
,
330
),
false
,
L""
);
wPhase
->
setDraggable
(
false
);
wPhase
->
getCloseButton
()
->
setVisible
(
false
);
wPhase
->
setDrawBackground
(
false
);
wPhase
->
setVisible
(
false
);
btnDP
=
env
->
addButton
(
rect
<
s32
>
(
0
,
0
,
50
,
20
),
wPhase
,
-
1
,
L"DP"
);
btnDP
->
setEnabled
(
false
);
btnDP
->
setPressed
(
true
);
btnDP
->
setVisible
(
false
);
btnSP
=
env
->
addButton
(
rect
<
s32
>
(
540
,
310
,
590
,
330
),
0
,
-
1
,
L"SP"
);
btnSP
=
env
->
addButton
(
rect
<
s32
>
(
65
,
0
,
115
,
20
),
wPhase
,
-
1
,
L"SP"
);
btnSP
->
setEnabled
(
false
);
btnSP
->
setPressed
(
true
);
btnSP
->
setVisible
(
false
);
btnM1
=
env
->
addButton
(
rect
<
s32
>
(
605
,
310
,
655
,
330
),
0
,
-
1
,
L"M1"
);
btnM1
=
env
->
addButton
(
rect
<
s32
>
(
130
,
0
,
180
,
20
),
wPhase
,
-
1
,
L"M1"
);
btnM1
->
setEnabled
(
false
);
btnM1
->
setPressed
(
true
);
btnM1
->
setVisible
(
false
);
btnBP
=
env
->
addButton
(
rect
<
s32
>
(
670
,
310
,
720
,
330
),
0
,
BUTTON_BP
,
L"BP"
);
btnBP
=
env
->
addButton
(
rect
<
s32
>
(
195
,
0
,
245
,
20
),
wPhase
,
BUTTON_BP
,
L"BP"
);
btnBP
->
setVisible
(
false
);
btnM2
=
env
->
addButton
(
rect
<
s32
>
(
735
,
310
,
785
,
330
),
0
,
BUTTON_M2
,
L"M2"
);
btnM2
=
env
->
addButton
(
rect
<
s32
>
(
260
,
0
,
310
,
20
),
wPhase
,
BUTTON_M2
,
L"M2"
);
btnM2
->
setVisible
(
false
);
btnEP
=
env
->
addButton
(
rect
<
s32
>
(
800
,
310
,
850
,
330
),
0
,
BUTTON_EP
,
L"EP"
);
btnEP
=
env
->
addButton
(
rect
<
s32
>
(
325
,
0
,
375
,
20
),
wPhase
,
BUTTON_EP
,
L"EP"
);
btnEP
->
setVisible
(
false
);
//tab
wInfos
=
env
->
addTabControl
(
rect
<
s32
>
(
1
,
275
,
301
,
639
),
0
,
true
);
...
...
gframe/game.h
View file @
339d756b
...
...
@@ -24,28 +24,14 @@ struct Config {
struct
DuelInfo
{
bool
isStarted
;
bool
is_shuffling
;
bool
netError
;
bool
is_host_player
[
2
];
bool
is_first_turn
;
bool
is_local_host
;
bool
is_responsed
;
int
resPlayer
;
int
lp
[
2
];
int
engFlag
;
int
engLen
;
int
engType
;
int
msgLen
;
int
msgType
;
int
turn
;
short
curMsg
;
short
preMsg
;
int
selectHint
;
wchar_t
hostname
[
20
];
wchar_t
clientname
[
20
];
wchar_t
pass
[
20
];
wchar_t
strLP
[
2
][
16
];
wchar_t
strTurn
[
8
];
wchar_t
strEvent
[
64
];
};
class
Game
{
...
...
@@ -279,6 +265,7 @@ public:
irr
::
gui
::
IGUIButton
*
btnAttack
;
irr
::
gui
::
IGUIButton
*
btnShowList
;
//phase button
irr
::
gui
::
IGUIWindow
*
wPhase
;
irr
::
gui
::
IGUIButton
*
btnDP
;
irr
::
gui
::
IGUIButton
*
btnSP
;
irr
::
gui
::
IGUIButton
*
btnM1
;
...
...
gframe/menu_handler.cpp
View file @
339d756b
...
...
@@ -266,55 +266,6 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
}
break
;
}
case
irr
:
:
EET_USER_EVENT
:
{
switch
(
event
.
UserEvent
.
UserData1
)
{
case
UEVENT_EXIT
:
{
if
(
mainGame
->
guiFading
)
{
mainGame
->
guiFading
->
setVisible
(
false
);
mainGame
->
guiNext
=
0
;
}
mainGame
->
ShowElement
(
mainGame
->
wMessage
,
60
);
if
(
event
.
UserEvent
.
UserData2
==
1
)
mainGame
->
exit_window
=
mainGame
->
wLanWindow
;
else
if
(
event
.
UserEvent
.
UserData2
==
2
)
;
else
if
(
event
.
UserEvent
.
UserData2
==
3
)
;
break
;
}
case
UEVENT_TOWINDOW
:
{
mainGame
->
exit_window
=
0
;
mainGame
->
wMessage
->
setVisible
(
false
);
mainGame
->
wACMessage
->
setVisible
(
false
);
mainGame
->
wQuery
->
setVisible
(
false
);
mainGame
->
wOptions
->
setVisible
(
false
);
mainGame
->
wPosSelect
->
setVisible
(
false
);
mainGame
->
wCardSelect
->
setVisible
(
false
);
mainGame
->
wANNumber
->
setVisible
(
false
);
mainGame
->
wANCard
->
setVisible
(
false
);
mainGame
->
wANAttribute
->
setVisible
(
false
);
mainGame
->
wANRace
->
setVisible
(
false
);
mainGame
->
wCmdMenu
->
setVisible
(
false
);
mainGame
->
wReplaySave
->
setVisible
(
false
);
mainGame
->
btnDP
->
setVisible
(
false
);
mainGame
->
btnSP
->
setVisible
(
false
);
mainGame
->
btnM1
->
setVisible
(
false
);
mainGame
->
btnBP
->
setVisible
(
false
);
mainGame
->
btnM2
->
setVisible
(
false
);
mainGame
->
btnEP
->
setVisible
(
false
);
mainGame
->
wCardImg
->
setVisible
(
false
);
mainGame
->
wInfos
->
setVisible
(
false
);
mainGame
->
stHintMsg
->
setVisible
(
false
);
mainGame
->
stTip
->
setVisible
(
false
);
mainGame
->
device
->
setEventReceiver
(
&
mainGame
->
menuHandler
);
mainGame
->
dField
.
Clear
();
mainGame
->
ShowElement
(
mainGame
->
exit_window
);
break
;
}
break
;
}
break
;
}
}
return
false
;
}
...
...
gframe/message.cpp
View file @
339d756b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
ocgcore/libduel.cpp
View file @
339d756b
...
...
@@ -1216,7 +1216,9 @@ int32 scriptlib::duel_get_chain_info(lua_State *L) {
lua_pushinteger
(
L
,
ch
->
chain_id
);
break
;
case
CHAININFO_TYPE
:
lua_pushinteger
(
L
,
(
ch
->
chain_type
&
0x7
));
if
((
ch
->
chain_type
&
0x7
)
==
(
TYPE_TRAP
|
TYPE_MONSTER
))
lua_pushinteger
(
L
,
TYPE_MONSTER
);
else
lua_pushinteger
(
L
,
(
ch
->
chain_type
&
0x7
));
break
;
case
CHAININFO_EXTTYPE
:
lua_pushinteger
(
L
,
ch
->
chain_type
);
...
...
ocgcore/processor.cpp
View file @
339d756b
...
...
@@ -3539,8 +3539,6 @@ int32 field::add_chain(uint16 step) {
if
(
!
(
peffect
->
flag
&
EFFECT_FLAG_FIELD_ONLY
)
&&
peffect
->
handler
->
is_affected_by_effect
(
EFFECT_DISABLE_EFFECT
))
clit
->
flag
|=
CHAIN_DISABLE_EFFECT
;
clit
->
chain_type
=
peffect
->
handler
->
get_type
();
if
(
clit
->
chain_type
==
TYPE_MONSTER
+
TYPE_TRAP
)
clit
->
chain_type
=
TYPE_MONSTER
;
clit
->
chain_count
=
core
.
current_chain
.
size
()
+
1
;
clit
->
target_cards
=
0
;
clit
->
target_player
=
PLAYER_NONE
;
...
...
script/c2067935.lua
View file @
339d756b
...
...
@@ -4,7 +4,7 @@ function c2067935.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
2067935
,
0
))
e1
:
SetCategory
(
CATEGORY_REMOVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCondition
(
c2067935
.
rmcon
)
...
...
script/c21768554.lua
View file @
339d756b
...
...
@@ -26,7 +26,7 @@ function c21768554.cfilter(c)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc
)
end
function
c21768554
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c21768554
.
cfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c21768554
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c21768554
.
filter
(
c
)
return
c
:
GetCounter
(
0xe
)
>
0
and
c
:
IsControlerCanBeChanged
()
...
...
script/c24694698.lua
View file @
339d756b
...
...
@@ -10,20 +10,17 @@ function c24694698.initial_effect(c)
e1
:
SetTarget
(
c24694698
.
target
)
e1
:
SetOperation
(
c24694698
.
operation
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
--draw
local
e
3
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetDescription
(
aux
.
Stringid
(
24694698
,
1
))
e
3
:
SetCategory
(
CATEGORY_DRAW
)
e
3
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
3
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e
3
:
SetRange
(
LOCATION_MZONE
)
e
3
:
SetCountLimit
(
1
)
e
3
:
SetTarget
(
c24694698
.
drtg
)
e
3
:
SetOperation
(
c24694698
.
drop
)
c
:
RegisterEffect
(
e
3
)
local
e
2
=
Effect
.
CreateEffect
(
c
)
e
2
:
SetDescription
(
aux
.
Stringid
(
24694698
,
1
))
e
2
:
SetCategory
(
CATEGORY_DRAW
)
e
2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e
2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e
2
:
SetRange
(
LOCATION_MZONE
)
e
2
:
SetCountLimit
(
1
)
e
2
:
SetTarget
(
c24694698
.
drtg
)
e
2
:
SetOperation
(
c24694698
.
drop
)
c
:
RegisterEffect
(
e
2
)
end
function
c24694698
.
tgfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x2a
)
and
c
:
IsAbleToGrave
()
...
...
script/c43385557.lua
View file @
339d756b
...
...
@@ -20,9 +20,12 @@ end
function
c43385557
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetTurnPlayer
()
==
tp
end
function
c43385557
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsRace
(
RACE_PSYCHO
)
end
function
c43385557
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
ct
=
Duel
.
GetMatchingGroupCount
(
Card
.
IsRace
,
tp
,
LOCATION_MZONE
,
0
,
nil
,
RACE_PSYCHO
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c43385557
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
Duel
.
SetTargetPlayer
(
tp
)
Duel
.
SetTargetParam
(
ct
*
600
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
ct
*
600
)
...
...
script/c52971944.lua
View file @
339d756b
...
...
@@ -28,12 +28,12 @@ function c52971944.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCAITON_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
true
end
if
Duel
.
IsExistingMatchingCard
(
c52971944
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
As
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
52971944
,
0
))
then
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
52971944
,
0
))
then
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
cg
=
Duel
.
SelectMatchingCard
(
tp
,
c52971944
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
cg
,
POS_FACEUP
,
REASON_COST
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
As
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
52971944
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
else
e
:
SetProperty
(
0
)
end
...
...
@@ -47,8 +47,8 @@ end
function
c52971944
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCAITON_GRAVE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
52971944
)
==
0
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
As
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
As
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
)
end
local
g
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
1
,
0
,
0
)
e
:
GetHandler
():
RegisterFlagEffect
(
52971944
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
...
...
script/c53540729.lua
View file @
339d756b
...
...
@@ -13,7 +13,7 @@ function c53540729.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c53540729
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x58
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x58
)
and
c
:
IsLevelAbove
(
1
)
end
function
c53540729
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c24920410
.
filter
(
chkc
)
end
...
...
script/c56769674.lua
View file @
339d756b
...
...
@@ -19,7 +19,7 @@ function c56769674.initial_effect(c)
end
function
c56769674
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
562
)
local
rc
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
0xffff
)
e
:
GetLabelObject
():
SetLabel
(
rc
)
end
...
...
script/c66957584.lua
View file @
339d756b
...
...
@@ -53,7 +53,7 @@ end
function
c66957584
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c66957584
.
filter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExisting
MatchingCard
(
c66957584
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExisting
Target
(
c66957584
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
local
ct
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ct
>
2
then
ct
=
2
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
script/c73262676.lua
View file @
339d756b
...
...
@@ -11,7 +11,7 @@ function c73262676.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c73262676
.
filter
(
c
)
return
c
:
GetCounter
(
0xe
)
>
0
and
c
:
GetLevel
()
>
0
and
c
:
IsDestructable
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc
)
and
c
:
GetLevel
()
>
0
and
c
:
IsDestructable
()
end
function
c73262676
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c73262676
.
filter
(
chkc
)
end
...
...
script/c74701381.lua
View file @
339d756b
...
...
@@ -18,7 +18,7 @@ function c74701381.initial_effect(c)
end
function
c74701381
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
0
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
563
)
local
rc
=
Duel
.
AnnounceRace
(
tp
,
1
,
0xffffff
)
e
:
GetLabelObject
():
SetLabel
(
rc
)
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