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
b1f143d7
Commit
b1f143d7
authored
Jun 27, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/Fluorohydride/ygopro-core
parents
3ee2dd48
a1a33d15
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
7 deletions
+3
-7
field.cpp
field.cpp
+2
-0
interpreter.cpp
interpreter.cpp
+0
-1
libcard.cpp
libcard.cpp
+0
-3
operations.cpp
operations.cpp
+1
-2
scriptlib.h
scriptlib.h
+0
-1
No files found.
field.cpp
View file @
b1f143d7
...
@@ -3358,6 +3358,8 @@ int32 field::check_trigger_effect(const chain& ch) const {
...
@@ -3358,6 +3358,8 @@ int32 field::check_trigger_effect(const chain& ch) const {
return
FALSE
;
return
FALSE
;
if
(
peffect
->
code
==
EVENT_FLIP
&&
infos
.
phase
==
PHASE_DAMAGE
)
if
(
peffect
->
code
==
EVENT_FLIP
&&
infos
.
phase
==
PHASE_DAMAGE
)
return
TRUE
;
return
TRUE
;
if
((
phandler
->
current
.
location
&
LOCATION_DECK
)
&&
!
(
ch
.
flag
&
CHAIN_DECK_EFFECT
))
return
FALSE
;
if
((
ch
.
triggering_location
&
(
LOCATION_DECK
|
LOCATION_HAND
|
LOCATION_EXTRA
))
if
((
ch
.
triggering_location
&
(
LOCATION_DECK
|
LOCATION_HAND
|
LOCATION_EXTRA
))
&&
(
ch
.
triggering_position
&
POS_FACEDOWN
))
&&
(
ch
.
triggering_position
&
POS_FACEDOWN
))
return
TRUE
;
return
TRUE
;
...
...
interpreter.cpp
View file @
b1f143d7
...
@@ -253,7 +253,6 @@ static const struct luaL_Reg cardlib[] = {
...
@@ -253,7 +253,6 @@ static const struct luaL_Reg cardlib[] = {
{
"IsCanBeEffectTarget"
,
scriptlib
::
card_is_can_be_effect_target
},
{
"IsCanBeEffectTarget"
,
scriptlib
::
card_is_can_be_effect_target
},
{
"IsCanBeBattleTarget"
,
scriptlib
::
card_is_can_be_battle_target
},
{
"IsCanBeBattleTarget"
,
scriptlib
::
card_is_can_be_battle_target
},
{
"AddMonsterAttribute"
,
scriptlib
::
card_add_monster_attribute
},
{
"AddMonsterAttribute"
,
scriptlib
::
card_add_monster_attribute
},
{
"AddMonsterAttributeComplete"
,
scriptlib
::
card_add_monster_attribute_complete
},
{
"CancelToGrave"
,
scriptlib
::
card_cancel_to_grave
},
{
"CancelToGrave"
,
scriptlib
::
card_cancel_to_grave
},
{
"GetTributeRequirement"
,
scriptlib
::
card_get_tribute_requirement
},
{
"GetTributeRequirement"
,
scriptlib
::
card_get_tribute_requirement
},
{
"GetBattleTarget"
,
scriptlib
::
card_get_battle_target
},
{
"GetBattleTarget"
,
scriptlib
::
card_get_battle_target
},
...
...
libcard.cpp
View file @
b1f143d7
...
@@ -2893,9 +2893,6 @@ int32 scriptlib::card_add_monster_attribute(lua_State *L) {
...
@@ -2893,9 +2893,6 @@ int32 scriptlib::card_add_monster_attribute(lua_State *L) {
}
}
return
0
;
return
0
;
}
}
int32
scriptlib
::
card_add_monster_attribute_complete
(
lua_State
*
L
)
{
return
0
;
}
int32
scriptlib
::
card_cancel_to_grave
(
lua_State
*
L
)
{
int32
scriptlib
::
card_cancel_to_grave
(
lua_State
*
L
)
{
check_param_count
(
L
,
1
);
check_param_count
(
L
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
check_param
(
L
,
PARAM_TYPE_CARD
,
1
);
...
...
operations.cpp
View file @
b1f143d7
...
@@ -4440,8 +4440,7 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
...
@@ -4440,8 +4440,7 @@ int32 field::move_to_field(uint16 step, card* target, uint32 enable, uint32 ret,
peffect
->
dec_count
();
peffect
->
dec_count
();
}
}
}
}
effect
*
teffect
;
if
(
effect
*
teffect
=
target
->
is_affected_by_effect
(
EFFECT_PRE_MONSTER
))
{
if
(
teffect
=
target
->
is_affected_by_effect
(
EFFECT_PRE_MONSTER
))
{
uint32
type
=
teffect
->
value
;
uint32
type
=
teffect
->
value
;
if
(
type
&
TYPE_TRAP
)
if
(
type
&
TYPE_TRAP
)
type
|=
TYPE_TRAPMONSTER
|
target
->
data
.
type
;
type
|=
TYPE_TRAPMONSTER
|
target
->
data
.
type
;
...
...
scriptlib.h
View file @
b1f143d7
...
@@ -257,7 +257,6 @@ public:
...
@@ -257,7 +257,6 @@ public:
static
int32
card_is_can_be_effect_target
(
lua_State
*
L
);
static
int32
card_is_can_be_effect_target
(
lua_State
*
L
);
static
int32
card_is_can_be_battle_target
(
lua_State
*
L
);
static
int32
card_is_can_be_battle_target
(
lua_State
*
L
);
static
int32
card_add_monster_attribute
(
lua_State
*
L
);
static
int32
card_add_monster_attribute
(
lua_State
*
L
);
static
int32
card_add_monster_attribute_complete
(
lua_State
*
L
);
static
int32
card_cancel_to_grave
(
lua_State
*
L
);
static
int32
card_cancel_to_grave
(
lua_State
*
L
);
static
int32
card_get_tribute_requirement
(
lua_State
*
L
);
static
int32
card_get_tribute_requirement
(
lua_State
*
L
);
static
int32
card_get_battle_target
(
lua_State
*
L
);
static
int32
card_get_battle_target
(
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