Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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-core
Commits
0c07eb86
Commit
0c07eb86
authored
Jan 10, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove Duel.VenomSwampCheck
see Fluorohydride/ygopro-scripts@1b7ef0d
parent
11c3fdd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
55 deletions
+0
-55
interpreter.cpp
interpreter.cpp
+0
-1
libduel.cpp
libduel.cpp
+0
-53
scriptlib.h
scriptlib.h
+0
-1
No files found.
interpreter.cpp
View file @
0c07eb86
...
@@ -576,7 +576,6 @@ static const struct luaL_Reg duellib[] = {
...
@@ -576,7 +576,6 @@ static const struct luaL_Reg duellib[] = {
{
"GetCustomActivityCount"
,
scriptlib
::
duel_get_custom_activity_count
},
{
"GetCustomActivityCount"
,
scriptlib
::
duel_get_custom_activity_count
},
{
"GetBattledCount"
,
scriptlib
::
duel_get_battled_count
},
{
"GetBattledCount"
,
scriptlib
::
duel_get_battled_count
},
{
"IsAbleToEnterBP"
,
scriptlib
::
duel_is_able_to_enter_bp
},
{
"IsAbleToEnterBP"
,
scriptlib
::
duel_is_able_to_enter_bp
},
{
"VenomSwampCheck"
,
scriptlib
::
duel_venom_swamp_check
},
{
"SwapDeckAndGrave"
,
scriptlib
::
duel_swap_deck_and_grave
},
{
"SwapDeckAndGrave"
,
scriptlib
::
duel_swap_deck_and_grave
},
{
"MajesticCopy"
,
scriptlib
::
duel_majestic_copy
},
{
"MajesticCopy"
,
scriptlib
::
duel_majestic_copy
},
{
NULL
,
NULL
}
{
NULL
,
NULL
}
...
...
libduel.cpp
View file @
0c07eb86
...
@@ -4298,59 +4298,6 @@ int32 scriptlib::duel_is_able_to_enter_bp(lua_State *L) {
...
@@ -4298,59 +4298,6 @@ int32 scriptlib::duel_is_able_to_enter_bp(lua_State *L) {
lua_pushboolean
(
L
,
pduel
->
game_field
->
is_able_to_enter_bp
());
lua_pushboolean
(
L
,
pduel
->
game_field
->
is_able_to_enter_bp
());
return
1
;
return
1
;
}
}
int32
scriptlib
::
duel_venom_swamp_check
(
lua_State
*
L
)
{
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_CARD
,
2
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
2
);
if
(
pcard
->
get_counter
(
0x9
)
==
0
||
pcard
->
is_affected_by_effect
(
EFFECT_SWAP_AD
)
||
pcard
->
is_affected_by_effect
(
EFFECT_REVERSE_UPDATE
))
{
lua_pushboolean
(
L
,
0
);
return
1
;
}
uint32
base
=
pcard
->
get_base_attack
();
pcard
->
temp
.
base_attack
=
base
;
pcard
->
temp
.
attack
=
base
;
int32
up
=
0
,
upc
=
0
;
effect_set
eset
;
effect
*
peffect
=
0
;
pcard
->
filter_effect
(
EFFECT_UPDATE_ATTACK
,
&
eset
,
FALSE
);
pcard
->
filter_effect
(
EFFECT_SET_ATTACK
,
&
eset
,
FALSE
);
pcard
->
filter_effect
(
EFFECT_SET_ATTACK_FINAL
,
&
eset
);
for
(
int32
i
=
0
;
i
<
eset
.
size
();
++
i
)
{
switch
(
eset
[
i
]
->
code
)
{
case
EFFECT_UPDATE_ATTACK
:
{
if
(
eset
[
i
]
->
type
&
EFFECT_TYPE_SINGLE
&&
!
eset
[
i
]
->
is_flag
(
EFFECT_FLAG_SINGLE_RANGE
))
up
+=
eset
[
i
]
->
get_value
(
pcard
);
else
upc
+=
eset
[
i
]
->
get_value
(
pcard
);
if
(
pcard
->
temp
.
attack
>
0
)
peffect
=
eset
[
i
];
break
;
}
case
EFFECT_SET_ATTACK
:
base
=
eset
[
i
]
->
get_value
(
pcard
);
if
(
eset
[
i
]
->
type
&
EFFECT_TYPE_SINGLE
&&
!
eset
[
i
]
->
is_flag
(
EFFECT_FLAG_SINGLE_RANGE
))
up
=
0
;
break
;
case
EFFECT_SET_ATTACK_FINAL
:
if
(
eset
[
i
]
->
type
&
EFFECT_TYPE_SINGLE
&&
!
eset
[
i
]
->
is_flag
(
EFFECT_FLAG_SINGLE_RANGE
))
{
base
=
eset
[
i
]
->
get_value
(
pcard
);
up
=
0
;
upc
=
0
;
peffect
=
0
;
}
break
;
}
pcard
->
temp
.
attack
=
base
+
up
+
upc
;
}
int32
atk
=
pcard
->
temp
.
attack
;
pcard
->
temp
.
base_attack
=
0xffffffff
;
pcard
->
temp
.
attack
=
0xffffffff
;
if
((
atk
<=
0
)
&&
peffect
&&
(
peffect
->
handler
->
get_code
()
==
54306223
))
lua_pushboolean
(
L
,
1
);
else
lua_pushboolean
(
L
,
0
);
return
1
;
}
int32
scriptlib
::
duel_swap_deck_and_grave
(
lua_State
*
L
)
{
int32
scriptlib
::
duel_swap_deck_and_grave
(
lua_State
*
L
)
{
check_action_permission
(
L
);
check_action_permission
(
L
);
check_param_count
(
L
,
1
);
check_param_count
(
L
,
1
);
...
...
scriptlib.h
View file @
0c07eb86
...
@@ -574,7 +574,6 @@ public:
...
@@ -574,7 +574,6 @@ public:
static
int32
duel_get_battled_count
(
lua_State
*
L
);
static
int32
duel_get_battled_count
(
lua_State
*
L
);
//specific card functions
//specific card functions
static
int32
duel_venom_swamp_check
(
lua_State
*
L
);
static
int32
duel_swap_deck_and_grave
(
lua_State
*
L
);
static
int32
duel_swap_deck_and_grave
(
lua_State
*
L
);
static
int32
duel_majestic_copy
(
lua_State
*
L
);
static
int32
duel_majestic_copy
(
lua_State
*
L
);
...
...
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