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
a349882a
Commit
a349882a
authored
May 12, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag
parent
efe3de3c
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
62 additions
and
52 deletions
+62
-52
gframe/duelclient.cpp
gframe/duelclient.cpp
+3
-2
gframe/game.cpp
gframe/game.cpp
+1
-1
ocgcore/effect.h
ocgcore/effect.h
+1
-0
ocgcore/field.cpp
ocgcore/field.cpp
+6
-2
ocgcore/field.h
ocgcore/field.h
+2
-2
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+2
-2
ocgcore/operations.cpp
ocgcore/operations.cpp
+4
-0
script/c12644061.lua
script/c12644061.lua
+1
-0
script/c3370104.lua
script/c3370104.lua
+2
-2
script/c47297616.lua
script/c47297616.lua
+17
-16
script/c49681811.lua
script/c49681811.lua
+1
-1
script/c5861892.lua
script/c5861892.lua
+11
-11
script/c70676581.lua
script/c70676581.lua
+5
-6
script/c78700060.lua
script/c78700060.lua
+2
-3
script/c79473793.lua
script/c79473793.lua
+2
-3
script/constant.lua
script/constant.lua
+1
-0
system.conf
system.conf
+1
-1
No files found.
gframe/duelclient.cpp
View file @
a349882a
...
@@ -369,8 +369,8 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
...
@@ -369,8 +369,8 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
if
(
!
mainGame
->
dInfo
.
is_tag
)
{
if
(
!
mainGame
->
dInfo
.
is_tag
)
{
selftype
=
pkt
->
type
&
0xf
;
selftype
=
pkt
->
type
&
0xf
;
is_host
=
(
pkt
->
type
>>
4
)
&
0xf
;
is_host
=
(
pkt
->
type
>>
4
)
&
0xf
;
mainGame
->
btnHostPrepKick
[
2
]
->
setVisible
(
tru
e
);
mainGame
->
btnHostPrepKick
[
2
]
->
setVisible
(
fals
e
);
mainGame
->
btnHostPrepKick
[
3
]
->
setVisible
(
tru
e
);
mainGame
->
btnHostPrepKick
[
3
]
->
setVisible
(
fals
e
);
if
(
is_host
)
{
if
(
is_host
)
{
mainGame
->
btnHostPrepStart
->
setVisible
(
true
);
mainGame
->
btnHostPrepStart
->
setVisible
(
true
);
mainGame
->
btnHostPrepKick
[
0
]
->
setVisible
(
true
);
mainGame
->
btnHostPrepKick
[
0
]
->
setVisible
(
true
);
...
@@ -2676,6 +2676,7 @@ int DuelClient::ClientAnalyze(char* msg, unsigned int len) {
...
@@ -2676,6 +2676,7 @@ int DuelClient::ClientAnalyze(char* msg, unsigned int len) {
}
}
for
(
auto
cit
=
mainGame
->
dField
.
extra
[
player
].
begin
();
cit
!=
mainGame
->
dField
.
extra
[
player
].
end
();
++
cit
)
{
for
(
auto
cit
=
mainGame
->
dField
.
extra
[
player
].
begin
();
cit
!=
mainGame
->
dField
.
extra
[
player
].
end
();
++
cit
)
{
ClientCard
*
pcard
=
*
cit
;
ClientCard
*
pcard
=
*
cit
;
pcard
->
code
=
0
;
mainGame
->
dField
.
GetCardLocation
(
pcard
,
&
pcard
->
curPos
,
&
pcard
->
curRot
);
mainGame
->
dField
.
GetCardLocation
(
pcard
,
&
pcard
->
curPos
,
&
pcard
->
curRot
);
if
(
player
==
0
)
pcard
->
curPos
.
Y
+=
2.0
f
;
if
(
player
==
0
)
pcard
->
curPos
.
Y
+=
2.0
f
;
else
pcard
->
curPos
.
Y
-=
3.0
f
;
else
pcard
->
curPos
.
Y
-=
3.0
f
;
...
...
gframe/game.cpp
View file @
a349882a
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
#include <dirent.h>
#include <dirent.h>
#endif
#endif
const
unsigned
short
PRO_VERSION
=
0x12
72
;
const
unsigned
short
PRO_VERSION
=
0x12
80
;
namespace
ygo
{
namespace
ygo
{
...
...
ocgcore/effect.h
View file @
a349882a
...
@@ -159,6 +159,7 @@ public:
...
@@ -159,6 +159,7 @@ public:
#define EFFECT_FLAG_AVAILABLE_BD 0x2000000 //
#define EFFECT_FLAG_AVAILABLE_BD 0x2000000 //
#define EFFECT_FLAG_CLIENT_HINT 0x4000000 //
#define EFFECT_FLAG_CLIENT_HINT 0x4000000 //
#define EFFECT_FLAG_CHAIN_UNIQUE 0x8000000 //
#define EFFECT_FLAG_CHAIN_UNIQUE 0x8000000 //
#define EFFECT_FLAG_NAGA 0x10000000 //
//========== Codes ==========
//========== Codes ==========
#define EFFECT_IMMUNE_EFFECT 1 //
#define EFFECT_IMMUNE_EFFECT 1 //
#define EFFECT_DISABLE 2 //
#define EFFECT_DISABLE 2 //
...
...
ocgcore/field.cpp
View file @
a349882a
...
@@ -1689,7 +1689,7 @@ int32 field::is_player_can_remove(uint8 playerid, card * pcard) {
...
@@ -1689,7 +1689,7 @@ int32 field::is_player_can_remove(uint8 playerid, card * pcard) {
}
}
return
TRUE
;
return
TRUE
;
}
}
int32
field
::
is_chain_negatable
(
uint8
chaincount
)
{
int32
field
::
is_chain_negatable
(
uint8
chaincount
,
uint8
naga_check
)
{
effect_set
eset
;
effect_set
eset
;
if
(
chaincount
<
0
&&
chaincount
>
core
.
current_chain
.
size
())
if
(
chaincount
<
0
&&
chaincount
>
core
.
current_chain
.
size
())
return
FALSE
;
return
FALSE
;
...
@@ -1698,6 +1698,8 @@ int32 field::is_chain_negatable(uint8 chaincount) {
...
@@ -1698,6 +1698,8 @@ int32 field::is_chain_negatable(uint8 chaincount) {
peffect
=
core
.
current_chain
.
back
().
triggering_effect
;
peffect
=
core
.
current_chain
.
back
().
triggering_effect
;
else
else
peffect
=
core
.
current_chain
[
chaincount
-
1
].
triggering_effect
;
peffect
=
core
.
current_chain
[
chaincount
-
1
].
triggering_effect
;
if
(
naga_check
&&
peffect
->
flag
&
EFFECT_FLAG_NAGA
)
return
FALSE
;
if
(
peffect
->
flag
&
EFFECT_FLAG_CANNOT_DISABLE
)
if
(
peffect
->
flag
&
EFFECT_FLAG_CANNOT_DISABLE
)
return
FALSE
;
return
FALSE
;
filter_field_effect
(
EFFECT_CANNOT_INACTIVATE
,
&
eset
);
filter_field_effect
(
EFFECT_CANNOT_INACTIVATE
,
&
eset
);
...
@@ -1708,7 +1710,7 @@ int32 field::is_chain_negatable(uint8 chaincount) {
...
@@ -1708,7 +1710,7 @@ int32 field::is_chain_negatable(uint8 chaincount) {
}
}
return
TRUE
;
return
TRUE
;
}
}
int32
field
::
is_chain_disablable
(
uint8
chaincount
)
{
int32
field
::
is_chain_disablable
(
uint8
chaincount
,
uint8
naga_check
)
{
effect_set
eset
;
effect_set
eset
;
if
(
chaincount
<
0
&&
chaincount
>
core
.
current_chain
.
size
())
if
(
chaincount
<
0
&&
chaincount
>
core
.
current_chain
.
size
())
return
FALSE
;
return
FALSE
;
...
@@ -1717,6 +1719,8 @@ int32 field::is_chain_disablable(uint8 chaincount) {
...
@@ -1717,6 +1719,8 @@ int32 field::is_chain_disablable(uint8 chaincount) {
peffect
=
core
.
current_chain
.
back
().
triggering_effect
;
peffect
=
core
.
current_chain
.
back
().
triggering_effect
;
else
else
peffect
=
core
.
current_chain
[
chaincount
-
1
].
triggering_effect
;
peffect
=
core
.
current_chain
[
chaincount
-
1
].
triggering_effect
;
if
(
naga_check
&&
peffect
->
flag
&
EFFECT_FLAG_NAGA
)
return
FALSE
;
if
(
peffect
->
flag
&
EFFECT_FLAG_CANNOT_DISABLE
)
if
(
peffect
->
flag
&
EFFECT_FLAG_CANNOT_DISABLE
)
return
FALSE
;
return
FALSE
;
filter_field_effect
(
EFFECT_CANNOT_DISEFFECT
,
&
eset
);
filter_field_effect
(
EFFECT_CANNOT_DISEFFECT
,
&
eset
);
...
...
ocgcore/field.h
View file @
a349882a
...
@@ -354,8 +354,8 @@ public:
...
@@ -354,8 +354,8 @@ public:
int32
is_player_can_send_to_hand
(
uint8
playerid
,
card
*
pcard
);
int32
is_player_can_send_to_hand
(
uint8
playerid
,
card
*
pcard
);
int32
is_player_can_send_to_deck
(
uint8
playerid
,
card
*
pcard
);
int32
is_player_can_send_to_deck
(
uint8
playerid
,
card
*
pcard
);
int32
is_player_can_remove
(
uint8
playerid
,
card
*
pcard
);
int32
is_player_can_remove
(
uint8
playerid
,
card
*
pcard
);
int32
is_chain_negatable
(
uint8
chaincount
);
int32
is_chain_negatable
(
uint8
chaincount
,
uint8
naga_check
=
FALSE
);
int32
is_chain_disablable
(
uint8
chaincount
);
int32
is_chain_disablable
(
uint8
chaincount
,
uint8
naga_check
=
FALSE
);
int32
check_chain_target
(
uint8
chaincount
,
card
*
pcard
);
int32
check_chain_target
(
uint8
chaincount
,
card
*
pcard
);
void
add_process
(
uint16
type
,
uint16
step
,
effect
*
peffect
,
group
*
target
,
ptr
arg1
,
ptr
arg2
);
void
add_process
(
uint16
type
,
uint16
step
,
effect
*
peffect
,
group
*
target
,
ptr
arg1
,
ptr
arg2
);
...
...
ocgcore/libduel.cpp
View file @
a349882a
...
@@ -2687,14 +2687,14 @@ int32 scriptlib::duel_is_chain_negatable(lua_State * L) {
...
@@ -2687,14 +2687,14 @@ int32 scriptlib::duel_is_chain_negatable(lua_State * L) {
check_param_count
(
L
,
1
);
check_param_count
(
L
,
1
);
int32
chaincount
=
lua_tointeger
(
L
,
1
);
int32
chaincount
=
lua_tointeger
(
L
,
1
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
lua_pushboolean
(
L
,
pduel
->
game_field
->
is_chain_negatable
(
chaincount
));
lua_pushboolean
(
L
,
pduel
->
game_field
->
is_chain_negatable
(
chaincount
,
TRUE
));
return
1
;
return
1
;
}
}
int32
scriptlib
::
duel_is_chain_disablable
(
lua_State
*
L
)
{
int32
scriptlib
::
duel_is_chain_disablable
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param_count
(
L
,
1
);
int32
chaincount
=
lua_tointeger
(
L
,
1
);
int32
chaincount
=
lua_tointeger
(
L
,
1
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
lua_pushboolean
(
L
,
pduel
->
game_field
->
is_chain_disablable
(
chaincount
));
lua_pushboolean
(
L
,
pduel
->
game_field
->
is_chain_disablable
(
chaincount
,
TRUE
));
return
1
;
return
1
;
}
}
int32
scriptlib
::
duel_check_chain_target
(
lua_State
*
L
)
{
int32
scriptlib
::
duel_check_chain_target
(
lua_State
*
L
)
{
...
...
ocgcore/operations.cpp
View file @
a349882a
...
@@ -29,6 +29,8 @@ int32 field::negate_chain(uint8 chaincount) {
...
@@ -29,6 +29,8 @@ int32 field::negate_chain(uint8 chaincount) {
}
}
pduel
->
write_buffer8
(
MSG_CHAIN_NEGATED
);
pduel
->
write_buffer8
(
MSG_CHAIN_NEGATED
);
pduel
->
write_buffer8
(
chaincount
);
pduel
->
write_buffer8
(
chaincount
);
if
(
pchain
.
triggering_effect
->
flag
&
EFFECT_FLAG_NAGA
)
return
FALSE
;
return
TRUE
;
return
TRUE
;
}
}
return
FALSE
;
return
FALSE
;
...
@@ -46,6 +48,8 @@ int32 field::disable_chain(uint8 chaincount) {
...
@@ -46,6 +48,8 @@ int32 field::disable_chain(uint8 chaincount) {
core
.
current_chain
[
chaincount
-
1
].
disable_player
=
core
.
reason_player
;
core
.
current_chain
[
chaincount
-
1
].
disable_player
=
core
.
reason_player
;
pduel
->
write_buffer8
(
MSG_CHAIN_DISABLED
);
pduel
->
write_buffer8
(
MSG_CHAIN_DISABLED
);
pduel
->
write_buffer8
(
chaincount
);
pduel
->
write_buffer8
(
chaincount
);
if
(
pchain
.
triggering_effect
->
flag
&
EFFECT_FLAG_NAGA
)
return
FALSE
;
return
TRUE
;
return
TRUE
;
}
}
return
FALSE
;
return
FALSE
;
...
...
script/c12644061.lua
View file @
a349882a
...
@@ -67,5 +67,6 @@ function c12644061.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -67,5 +67,6 @@ function c12644061.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
c12644061
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12644061
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
Duel
.
ChangeBattleDamage
(
tp
,
0
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
end
script/c3370104.lua
View file @
a349882a
...
@@ -29,8 +29,8 @@ function c3370104.initial_effect(c)
...
@@ -29,8 +29,8 @@ function c3370104.initial_effect(c)
end
end
function
c3370104
.
distg
(
e
,
c
)
function
c3370104
.
distg
(
e
,
c
)
if
c
:
GetCardTargetCount
()
~=
1
then
return
false
end
if
c
:
GetCardTargetCount
()
~=
1
then
return
false
end
local
tc
=
c
:
Get
CardTarget
():
GetFirs
t
()
local
tc
=
c
:
Get
FirstCardTarge
t
()
return
tc
:
IsControler
(
e
:
GetHandler
():
GetControl
er
())
and
tc
:
IsRace
(
RACE_MACHINE
)
return
tc
:
IsControler
(
e
:
GetHandler
Play
er
())
and
tc
:
IsRace
(
RACE_MACHINE
)
end
end
function
c3370104
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c3370104
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsActiveType
(
TYPE_MONSTER
)
then
return
end
if
re
:
IsActiveType
(
TYPE_MONSTER
)
then
return
end
...
...
script/c47297616.lua
View file @
a349882a
...
@@ -41,7 +41,7 @@ function c47297616.initial_effect(c)
...
@@ -41,7 +41,7 @@ function c47297616.initial_effect(c)
end
end
function
c47297616
.
codisable
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47297616
.
codisable
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
return
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
IsChainNegatable
(
ev
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
end
function
c47297616
.
tgdisable
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47297616
.
tgdisable
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
@@ -56,21 +56,22 @@ function c47297616.opdisable(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,21 +56,22 @@ function c47297616.opdisable(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsFaceup
()
or
c
:
GetDefence
()
<
500
or
c
:
GetAttack
()
<
500
or
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
if
not
c
:
IsFaceup
()
or
c
:
GetDefence
()
<
500
or
c
:
GetAttack
()
<
500
or
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
return
return
end
end
Duel
.
NegateActivation
(
ev
)
if
Duel
.
NegateActivation
(
ev
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
500
)
e1
:
SetValue
(
-
500
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e2
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e2
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e2
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENCE
)
e2
:
SetValue
(
-
500
)
e2
:
SetValue
(
-
500
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
end
function
c47297616
.
cdspsum
(
e
)
function
c47297616
.
cdspsum
(
e
)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
return
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
...
...
script/c49681811.lua
View file @
a349882a
...
@@ -19,7 +19,7 @@ function c49681811.initial_effect(c)
...
@@ -19,7 +19,7 @@ function c49681811.initial_effect(c)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_SELF_DESTROY
)
e3
:
SetCode
(
EFFECT_SELF_DESTROY
)
e3
:
SetRange
(
LOCATION_
S
ZONE
)
e3
:
SetRange
(
LOCATION_
M
ZONE
)
e3
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e3
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e3
:
SetTarget
(
c49681811
.
distg
)
e3
:
SetTarget
(
c49681811
.
distg
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
...
...
script/c5861892.lua
View file @
a349882a
...
@@ -102,7 +102,6 @@ function c5861892.negcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -102,7 +102,6 @@ function c5861892.negcon(e,tp,eg,ep,ev,re,r,rp)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
not
g
:
IsContains
(
c
)
then
return
false
end
if
not
g
or
not
g
:
IsContains
(
c
)
then
return
false
end
return
c
:
GetFlagEffectLabel
(
36690018
)
==
0
and
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
return
c
:
GetFlagEffectLabel
(
36690018
)
==
0
and
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c5861892
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c5861892
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -116,15 +115,16 @@ function c5861892.negop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -116,15 +115,16 @@ function c5861892.negop(e,tp,eg,ep,ev,re,r,rp)
if
not
c
:
IsFaceup
()
or
c
:
GetAttack
()
<
1000
or
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
if
not
c
:
IsFaceup
()
or
c
:
GetAttack
()
<
1000
or
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
return
return
end
end
Duel
.
NegateActivation
(
ev
)
if
Duel
.
NegateActivation
(
ev
)
then
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
1000
)
c
:
RegisterEffect
(
e1
)
end
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
1000
)
c
:
RegisterEffect
(
e1
)
end
end
script/c70676581.lua
View file @
a349882a
...
@@ -25,7 +25,7 @@ function c70676581.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c70676581.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_SELF_DESTROY
)
e4
:
SetCode
(
EFFECT_SELF_DESTROY
)
e4
:
SetRange
(
LOCATION_
S
ZONE
)
e4
:
SetRange
(
LOCATION_
M
ZONE
)
e4
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e4
:
SetTargetRange
(
LOCATION_SZONE
,
LOCATION_SZONE
)
e4
:
SetTarget
(
c70676581
.
distg
)
e4
:
SetTarget
(
c70676581
.
distg
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
...
@@ -42,19 +42,18 @@ function c70676581.initial_effect(c)
...
@@ -42,19 +42,18 @@ function c70676581.initial_effect(c)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c70676581
.
distg
(
e
,
c
)
function
c70676581
.
distg
(
e
,
c
)
if
c
:
GetCardTargetCount
()
==
0
then
return
false
end
if
c
:
GetCardTargetCount
()
==
0
or
not
c
:
IsType
(
TYPE_SPELL
)
then
return
false
end
local
tc
=
c
:
GetCardTarget
():
GetFirst
()
return
c
:
GetCardTarget
():
IsExists
(
c70676581
.
disfilter
,
1
,
nil
,
e
:
GetHandlerPlayer
())
return
tc
:
IsControler
(
e
:
GetHandlerPlayer
())
and
tc
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
end
function
c70676581
.
disfilter
(
c
,
tp
)
function
c70676581
.
disfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
return
c
:
IsControler
(
tp
)
and
c
:
Is
Faceup
()
and
c
:
Is
Location
(
LOCATION_MZONE
)
and
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
end
function
c70676581
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c70676581
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsActiveType
(
TYPE_SPELL
)
then
return
end
if
not
re
:
IsActiveType
(
TYPE_SPELL
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
g
:
GetCount
()
==
0
then
return
end
if
not
g
or
g
:
GetCount
()
==
0
then
return
end
if
g
:
IsExists
(
c70676581
.
disfilter
,
1
,
nil
)
then
if
g
:
IsExists
(
c70676581
.
disfilter
,
1
,
nil
,
tp
)
then
Duel
.
NegateEffect
(
ev
)
Duel
.
NegateEffect
(
ev
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
...
...
script/c78700060.lua
View file @
a349882a
...
@@ -21,7 +21,7 @@ function c78700060.initial_effect(c)
...
@@ -21,7 +21,7 @@ function c78700060.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c78700060
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78700060
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
end
end
function
c78700060
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c78700060
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleaseable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleaseable
()
end
...
@@ -37,8 +37,7 @@ end
...
@@ -37,8 +37,7 @@ end
function
c78700060
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c78700060
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
return
end
if
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
return
end
Duel
.
NegateActivation
(
ev
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
end
end
script/c79473793.lua
View file @
a349882a
...
@@ -28,7 +28,7 @@ function c79473793.negcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -28,7 +28,7 @@ function c79473793.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
)
if
not
g
or
not
g
:
IsContains
(
c
)
then
return
false
end
if
not
g
or
not
g
:
IsContains
(
c
)
then
return
false
end
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
end
end
function
c79473793
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c79473793
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -38,8 +38,7 @@ function c79473793.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -38,8 +38,7 @@ function c79473793.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
end
end
function
c79473793
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c79473793
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
end
end
end
...
...
script/constant.lua
View file @
a349882a
...
@@ -237,6 +237,7 @@ EFFECT_FLAG_OWNER_RELATE =0x1000000 --
...
@@ -237,6 +237,7 @@ EFFECT_FLAG_OWNER_RELATE =0x1000000 --
EFFECT_FLAG_AVAILABLE_BD
=
0x2000000
--
EFFECT_FLAG_AVAILABLE_BD
=
0x2000000
--
EFFECT_FLAG_CLIENT_HINT
=
0x4000000
--
EFFECT_FLAG_CLIENT_HINT
=
0x4000000
--
EFFECT_FLAG_CHAIN_UNIQUE
=
0x8000000
--
EFFECT_FLAG_CHAIN_UNIQUE
=
0x8000000
--
EFFECT_FLAG_NAGA
=
0x10000000
--
--========== Codes ==========
--========== Codes ==========
EFFECT_IMMUNE_EFFECT
=
1
--
EFFECT_IMMUNE_EFFECT
=
1
--
EFFECT_DISABLE
=
2
--
EFFECT_DISABLE
=
2
--
...
...
system.conf
View file @
a349882a
...
@@ -5,7 +5,7 @@ antialias = 2
...
@@ -5,7 +5,7 @@ antialias = 2
errorlog
=
1
errorlog
=
1
nickname
=
Player
nickname
=
Player
gamename
=
Game
gamename
=
Game
lastdeck
=
T1
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