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
1ad1b5fc
Commit
1ad1b5fc
authored
Jun 04, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fc5791c2
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
56 additions
and
36 deletions
+56
-36
gframe/client_card.cpp
gframe/client_card.cpp
+8
-2
gframe/duelclient.cpp
gframe/duelclient.cpp
+1
-0
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+1
-0
ocgcore/interpreter.cpp
ocgcore/interpreter.cpp
+1
-0
ocgcore/libcard.cpp
ocgcore/libcard.cpp
+7
-0
ocgcore/operations.cpp
ocgcore/operations.cpp
+4
-0
ocgcore/processor.cpp
ocgcore/processor.cpp
+2
-8
ocgcore/scriptlib.h
ocgcore/scriptlib.h
+1
-0
script/c14644902.lua
script/c14644902.lua
+1
-1
script/c15574615.lua
script/c15574615.lua
+1
-1
script/c7165085.lua
script/c7165085.lua
+2
-2
script/c76080032.lua
script/c76080032.lua
+7
-6
script/c87008374.lua
script/c87008374.lua
+7
-6
script/c88301833.lua
script/c88301833.lua
+2
-1
script/c9720537.lua
script/c9720537.lua
+9
-7
system.conf
system.conf
+2
-2
No files found.
gframe/client_card.cpp
View file @
1ad1b5fc
...
@@ -108,10 +108,16 @@ void ClientCard::UpdateInfo(char* buf) {
...
@@ -108,10 +108,16 @@ void ClientCard::UpdateInfo(char* buf) {
is_public
=
BufferIO
::
ReadInt32
(
buf
);
is_public
=
BufferIO
::
ReadInt32
(
buf
);
}
}
void
ClientCard
::
ClearTarget
()
{
void
ClientCard
::
ClearTarget
()
{
for
(
auto
cit
=
cardTarget
.
begin
();
cit
!=
cardTarget
.
end
();
++
cit
)
for
(
auto
cit
=
cardTarget
.
begin
();
cit
!=
cardTarget
.
end
();
++
cit
)
{
if
(
is_showtarget
)
(
*
cit
)
->
is_showtarget
=
false
;
(
*
cit
)
->
ownerTarget
.
erase
(
this
);
(
*
cit
)
->
ownerTarget
.
erase
(
this
);
for
(
auto
cit
=
ownerTarget
.
begin
();
cit
!=
ownerTarget
.
end
();
++
cit
)
}
for
(
auto
cit
=
ownerTarget
.
begin
();
cit
!=
ownerTarget
.
end
();
++
cit
)
{
if
(
is_showtarget
)
(
*
cit
)
->
is_showtarget
=
false
;
(
*
cit
)
->
cardTarget
.
erase
(
this
);
(
*
cit
)
->
cardTarget
.
erase
(
this
);
}
cardTarget
.
clear
();
cardTarget
.
clear
();
ownerTarget
.
clear
();
ownerTarget
.
clear
();
}
}
...
...
gframe/duelclient.cpp
View file @
1ad1b5fc
...
@@ -1793,6 +1793,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -1793,6 +1793,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
if
(
cl
!=
pl
)
{
if
(
cl
!=
pl
)
{
pcard
->
ClearTarget
();
pcard
->
ClearTarget
();
if
(
pcard
->
equipTarget
)
{
if
(
pcard
->
equipTarget
)
{
pcard
->
equipTarget
->
is_showequip
=
false
;
pcard
->
equipTarget
->
equipped
.
erase
(
pcard
);
pcard
->
equipTarget
->
equipped
.
erase
(
pcard
);
pcard
->
equipTarget
=
0
;
pcard
->
equipTarget
=
0
;
}
}
...
...
gframe/replay_mode.cpp
View file @
1ad1b5fc
...
@@ -61,6 +61,7 @@ int ReplayMode::ReplayThread(void* param) {
...
@@ -61,6 +61,7 @@ int ReplayMode::ReplayThread(void* param) {
cur_replay
.
ReadData
(
mainGame
->
dInfo
.
hostname_tag
,
40
);
cur_replay
.
ReadData
(
mainGame
->
dInfo
.
hostname_tag
,
40
);
cur_replay
.
ReadData
(
mainGame
->
dInfo
.
clientname_tag
,
40
);
cur_replay
.
ReadData
(
mainGame
->
dInfo
.
clientname_tag
,
40
);
cur_replay
.
ReadData
(
mainGame
->
dInfo
.
clientname
,
40
);
cur_replay
.
ReadData
(
mainGame
->
dInfo
.
clientname
,
40
);
mainGame
->
dInfo
.
is_tag
=
true
;
}
else
{
}
else
{
cur_replay
.
ReadData
(
mainGame
->
dInfo
.
hostname
,
40
);
cur_replay
.
ReadData
(
mainGame
->
dInfo
.
hostname
,
40
);
cur_replay
.
ReadData
(
mainGame
->
dInfo
.
clientname
,
40
);
cur_replay
.
ReadData
(
mainGame
->
dInfo
.
clientname
,
40
);
...
...
ocgcore/interpreter.cpp
View file @
1ad1b5fc
...
@@ -111,6 +111,7 @@ static const struct luaL_Reg cardlib[] = {
...
@@ -111,6 +111,7 @@ static const struct luaL_Reg cardlib[] = {
{
"ReleaseRelation"
,
scriptlib
::
card_release_relation
},
{
"ReleaseRelation"
,
scriptlib
::
card_release_relation
},
{
"CreateEffectRelation"
,
scriptlib
::
card_create_effect_relation
},
{
"CreateEffectRelation"
,
scriptlib
::
card_create_effect_relation
},
{
"ReleaseEffectRelation"
,
scriptlib
::
card_release_effect_relation
},
{
"ReleaseEffectRelation"
,
scriptlib
::
card_release_effect_relation
},
{
"ClearEffectRelation"
,
scriptlib
::
card_clear_effect_relation
},
{
"IsRelateToEffect"
,
scriptlib
::
card_is_relate_to_effect
},
{
"IsRelateToEffect"
,
scriptlib
::
card_is_relate_to_effect
},
{
"IsRelateToCard"
,
scriptlib
::
card_is_relate_to_card
},
{
"IsRelateToCard"
,
scriptlib
::
card_is_relate_to_card
},
{
"IsRelateToBattle"
,
scriptlib
::
card_is_relate_to_battle
},
{
"IsRelateToBattle"
,
scriptlib
::
card_is_relate_to_battle
},
...
...
ocgcore/libcard.cpp
View file @
1ad1b5fc
...
@@ -870,6 +870,13 @@ int32 scriptlib::card_release_effect_relation(lua_State *L) {
...
@@ -870,6 +870,13 @@ int32 scriptlib::card_release_effect_relation(lua_State *L) {
pcard
->
relate_effect
.
erase
(
peffect
);
pcard
->
relate_effect
.
erase
(
peffect
);
return
0
;
return
0
;
}
}
int32
scriptlib
::
card_clear_effect_relation
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
1
);
pcard
->
relate_effect
.
clear
();
return
0
;
}
int32
scriptlib
::
card_is_relate_to_effect
(
lua_State
*
L
)
{
int32
scriptlib
::
card_is_relate_to_effect
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
...
...
ocgcore/operations.cpp
View file @
1ad1b5fc
...
@@ -444,6 +444,10 @@ int32 field::damage(uint16 step, effect* reason_effect, uint32 reason, uint8 rea
...
@@ -444,6 +444,10 @@ int32 field::damage(uint16 step, effect* reason_effect, uint32 reason, uint8 rea
pduel
->
write_buffer32
(
val
);
pduel
->
write_buffer32
(
val
);
core
.
units
.
begin
()
->
arg2
=
(
core
.
units
.
begin
()
->
arg2
&
0xff000000
)
+
(
val
&
0xffffff
);
core
.
units
.
begin
()
->
arg2
=
(
core
.
units
.
begin
()
->
arg2
&
0xff000000
)
+
(
val
&
0xffffff
);
raise_event
(
reason_card
,
EVENT_DAMAGE
,
reason_effect
,
reason
,
reason_player
,
playerid
,
val
);
raise_event
(
reason_card
,
EVENT_DAMAGE
,
reason_effect
,
reason
,
reason_player
,
playerid
,
val
);
if
(
reason
==
REASON_BATTLE
&&
reason_card
)
{
raise_single_event
(
reason_card
,
0
,
EVENT_BATTLE_DAMAGE
,
0
,
0
,
reason_player
,
playerid
,
val
);
raise_event
(
reason_card
,
EVENT_BATTLE_DAMAGE
,
0
,
0
,
reason_player
,
playerid
,
val
);
}
process_instant_event
();
process_instant_event
();
return
FALSE
;
return
FALSE
;
}
}
...
...
ocgcore/processor.cpp
View file @
1ad1b5fc
...
@@ -3210,16 +3210,10 @@ int32 field::process_battle_command(uint16 step) {
...
@@ -3210,16 +3210,10 @@ int32 field::process_battle_command(uint16 step) {
reason_card
=
core
.
attack_target
;
reason_card
=
core
.
attack_target
;
effect
*
damchange
=
core
.
units
.
begin
()
->
peffect
;
effect
*
damchange
=
core
.
units
.
begin
()
->
peffect
;
if
(
!
damchange
)
{
if
(
!
damchange
)
{
if
(
core
.
battle_damage
[
0
])
{
if
(
core
.
battle_damage
[
0
])
damage
(
0
,
REASON_BATTLE
,
reason_player
,
reason_card
,
0
,
core
.
battle_damage
[
0
]);
damage
(
0
,
REASON_BATTLE
,
reason_player
,
reason_card
,
0
,
core
.
battle_damage
[
0
]);
raise_single_event
(
reason_card
,
0
,
EVENT_BATTLE_DAMAGE
,
0
,
0
,
reason_player
,
0
,
core
.
battle_damage
[
0
]);
if
(
core
.
battle_damage
[
1
])
raise_event
(
reason_card
,
EVENT_BATTLE_DAMAGE
,
0
,
0
,
reason_player
,
0
,
core
.
battle_damage
[
0
]);
}
if
(
core
.
battle_damage
[
1
])
{
damage
(
0
,
REASON_BATTLE
,
reason_player
,
reason_card
,
1
,
core
.
battle_damage
[
1
]);
damage
(
0
,
REASON_BATTLE
,
reason_player
,
reason_card
,
1
,
core
.
battle_damage
[
1
]);
raise_single_event
(
reason_card
,
0
,
EVENT_BATTLE_DAMAGE
,
0
,
0
,
reason_player
,
1
,
core
.
battle_damage
[
1
]);
raise_event
(
reason_card
,
EVENT_BATTLE_DAMAGE
,
0
,
0
,
reason_player
,
1
,
core
.
battle_damage
[
1
]);
}
}
else
{
}
else
{
if
(
core
.
battle_damage
[
0
])
if
(
core
.
battle_damage
[
0
])
damage
(
damchange
,
REASON_EFFECT
,
reason_player
,
reason_card
,
0
,
core
.
battle_damage
[
0
]);
damage
(
damchange
,
REASON_EFFECT
,
reason_player
,
reason_card
,
0
,
core
.
battle_damage
[
0
]);
...
...
ocgcore/scriptlib.h
View file @
1ad1b5fc
...
@@ -113,6 +113,7 @@ public:
...
@@ -113,6 +113,7 @@ public:
static
int32
card_release_relation
(
lua_State
*
L
);
static
int32
card_release_relation
(
lua_State
*
L
);
static
int32
card_create_effect_relation
(
lua_State
*
L
);
static
int32
card_create_effect_relation
(
lua_State
*
L
);
static
int32
card_release_effect_relation
(
lua_State
*
L
);
static
int32
card_release_effect_relation
(
lua_State
*
L
);
static
int32
card_clear_effect_relation
(
lua_State
*
L
);
static
int32
card_is_relate_to_effect
(
lua_State
*
L
);
static
int32
card_is_relate_to_effect
(
lua_State
*
L
);
static
int32
card_is_relate_to_card
(
lua_State
*
L
);
static
int32
card_is_relate_to_card
(
lua_State
*
L
);
static
int32
card_is_relate_to_battle
(
lua_State
*
L
);
static
int32
card_is_relate_to_battle
(
lua_State
*
L
);
...
...
script/c14644902.lua
View file @
1ad1b5fc
...
@@ -21,7 +21,7 @@ function c14644902.filter(c,e,tp)
...
@@ -21,7 +21,7 @@ function c14644902.filter(c,e,tp)
end
end
function
c14644902
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14644902
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c14644902
.
rfilter
,
1
,
1
,
nil
,
e
)
local
rg
=
Duel
.
SelectReleaseGroup
(
tp
,
c14644902
.
rfilter
,
1
,
1
,
e
:
GetHandler
()
,
e
)
if
Duel
.
Release
(
rg
,
REASON_EFFECT
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
if
Duel
.
Release
(
rg
,
REASON_EFFECT
)
>
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c14644902
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
sg
=
Duel
.
SelectMatchingCard
(
tp
,
c14644902
.
filter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
...
...
script/c15574615.lua
View file @
1ad1b5fc
...
@@ -23,7 +23,7 @@ function c15574615.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c15574615.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c15574615
.
spfilter
(
c
,
code
)
function
c15574615
.
spfilter
(
c
,
code
)
return
c
:
IsFaceup
(
)
and
c
:
IsCode
(
code
)
and
c
:
IsAbleToGraveAsCost
()
return
(
c
:
IsLocation
(
LOCATION_HAND
)
or
c
:
IsFaceup
()
)
and
c
:
IsCode
(
code
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c15574615
.
spcon
(
e
,
c
)
function
c15574615
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
if
c
==
nil
then
return
true
end
...
...
script/c7165085.lua
View file @
1ad1b5fc
...
@@ -44,8 +44,8 @@ function c7165085.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,8 +44,8 @@ function c7165085.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ChangePosition
(
tc
,
POS_FACEUP
)
Duel
.
ChangePosition
(
tc
,
POS_FACEUP
)
tc
:
CancelToGrave
(
false
)
tc
:
CancelToGrave
(
false
)
tc
:
CreateEffectRelation
(
te
)
tc
:
CreateEffectRelation
(
te
)
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
target
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
if
target
then
target
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
tg
=
g
:
GetFirst
()
local
tg
=
g
:
GetFirst
()
while
tg
do
while
tg
do
...
...
script/c76080032.lua
View file @
1ad1b5fc
...
@@ -11,12 +11,6 @@ function c76080032.initial_effect(c)
...
@@ -11,12 +11,6 @@ function c76080032.initial_effect(c)
e1
:
SetTarget
(
c76080032
.
eqtg
)
e1
:
SetTarget
(
c76080032
.
eqtg
)
e1
:
SetOperation
(
c76080032
.
eqop
)
e1
:
SetOperation
(
c76080032
.
eqop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--equip effect
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetValue
(
1900
)
c
:
RegisterEffect
(
e2
)
--disable
--disable
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
)
...
@@ -76,6 +70,13 @@ function c76080032.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -76,6 +70,13 @@ function c76080032.eqop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
c76080032
.
eqlimit
)
e1
:
SetValue
(
c76080032
.
eqlimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--atkup
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetValue
(
1900
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e2
)
end
end
function
c76080032
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c76080032
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
script/c87008374.lua
View file @
1ad1b5fc
...
@@ -11,12 +11,6 @@ function c87008374.initial_effect(c)
...
@@ -11,12 +11,6 @@ function c87008374.initial_effect(c)
e1
:
SetTarget
(
c87008374
.
eqtg
)
e1
:
SetTarget
(
c87008374
.
eqtg
)
e1
:
SetOperation
(
c87008374
.
eqop
)
e1
:
SetOperation
(
c87008374
.
eqop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--equip effect
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetValue
(
1100
)
c
:
RegisterEffect
(
e2
)
--damage
--damage
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
87008374
,
1
))
e3
:
SetDescription
(
aux
.
Stringid
(
87008374
,
1
))
...
@@ -78,6 +72,13 @@ function c87008374.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -78,6 +72,13 @@ function c87008374.eqop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
c87008374
.
eqlimit
)
e1
:
SetValue
(
c87008374
.
eqlimit
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--atkup
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetValue
(
1100
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e2
)
end
end
function
c87008374
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c87008374
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
...
...
script/c88301833.lua
View file @
1ad1b5fc
...
@@ -11,6 +11,7 @@ function c88301833.initial_effect(c)
...
@@ -11,6 +11,7 @@ function c88301833.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetCategory
(
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetCondition
(
c88301833
.
thcon
)
e2
:
SetCondition
(
c88301833
.
thcon
)
e2
:
SetTarget
(
c88301833
.
thtg
)
e2
:
SetTarget
(
c88301833
.
thtg
)
...
@@ -25,7 +26,7 @@ function c88301833.thfilter(c,tp)
...
@@ -25,7 +26,7 @@ function c88301833.thfilter(c,tp)
end
end
function
c88301833
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c88301833
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
tc
=
eg
:
GetFirst
()
local
tc
=
eg
:
GetFirst
()
local
mat
=
tc
:
GetMaterial
()
i
local
mat
=
tc
:
GetMaterial
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
mat
:
IsContains
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
mat
:
IsContains
(
chkc
)
end
if
chk
==
0
then
return
mat
:
IsExists
(
c88301833
.
thfilter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
mat
:
IsExists
(
c88301833
.
thfilter
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
...
...
script/c9720537.lua
View file @
1ad1b5fc
...
@@ -19,13 +19,15 @@ function c9720537.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,13 +19,15 @@ function c9720537.activate(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
)
local
tc
=
g
:
GetFirst
()
local
tc
=
g
:
GetFirst
()
while
tc
do
while
tc
do
tc
:
ResetEffect
(
EFFECT_SET_CONTROL
,
RESET_CODE
)
if
not
tc
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
tc
:
ResetEffect
(
EFFECT_SET_CONTROL
,
RESET_CODE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetCode
(
EFFECT_SET_CONTROL
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetValue
(
tc
:
GetOwner
())
e1
:
SetCode
(
EFFECT_SET_CONTROL
)
e1
:
SetReset
(
RESET_EVENT
+
0xec0000
)
e1
:
SetValue
(
tc
:
GetOwner
())
tc
:
RegisterEffect
(
e1
)
e1
:
SetReset
(
RESET_EVENT
+
0xec0000
)
tc
:
RegisterEffect
(
e1
)
end
tc
=
g
:
GetNext
()
tc
=
g
:
GetNext
()
end
end
end
end
system.conf
View file @
1ad1b5fc
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
use_d3d
=
0
use_d3d
=
0
antialias
=
2
antialias
=
2
errorlog
=
1
errorlog
=
1
nickname
=
Player
1
nickname
=
Player
gamename
=
Game
gamename
=
Game
lastdeck
=
test
lastdeck
=
sample
textfont
=
c
:/
windows
/
fonts
/
simsun
.
ttc
14
textfont
=
c
:/
windows
/
fonts
/
simsun
.
ttc
14
numfont
=
c
:/
windows
/
fonts
/
arialbd
.
ttf
numfont
=
c
:/
windows
/
fonts
/
arialbd
.
ttf
serverport
=
7911
serverport
=
7911
...
...
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