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
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
nanahira
ygopro-core
Commits
1358b0ae
Commit
1358b0ae
authored
May 02, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EVENT_SPSUMMON of pendulum summon
parent
5d0bbcc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
card.cpp
card.cpp
+5
-5
operations.cpp
operations.cpp
+5
-4
No files found.
card.cpp
View file @
1358b0ae
...
...
@@ -399,7 +399,7 @@ uint32 card::get_type() {
int32
card
::
get_base_attack
(
uint8
swap
)
{
if
(
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
)
&&
!
is_affected_by_effect
(
EFFECT_PRE_MONSTER
))
return
0
;
if
(
current
.
location
!=
LOCATION_MZONE
||
status
&
STATUS_SUMMONING
)
if
(
current
.
location
!=
LOCATION_MZONE
||
is_status
(
STATUS_SUMMONING
)
)
return
data
.
attack
;
if
(
temp
.
base_attack
!=
-
1
)
return
temp
.
base_attack
;
...
...
@@ -427,7 +427,7 @@ int32 card::get_attack() {
return
assume_value
;
if
(
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
)
&&
!
is_affected_by_effect
(
EFFECT_PRE_MONSTER
))
return
0
;
if
(
current
.
location
!=
LOCATION_MZONE
||
status
&
STATUS_SUMMONING
)
if
(
current
.
location
!=
LOCATION_MZONE
||
is_status
(
STATUS_SUMMONING
)
)
return
data
.
attack
;
if
(
temp
.
attack
!=
-
1
)
return
temp
.
attack
;
...
...
@@ -438,7 +438,7 @@ int32 card::get_attack() {
int32
card
::
get_base_defence
(
uint8
swap
)
{
if
(
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
)
&&
!
is_affected_by_effect
(
EFFECT_PRE_MONSTER
))
return
0
;
if
(
current
.
location
!=
LOCATION_MZONE
||
status
&
STATUS_SUMMONING
)
if
(
current
.
location
!=
LOCATION_MZONE
||
is_status
(
STATUS_SUMMONING
)
)
return
data
.
defence
;
if
(
temp
.
base_defence
!=
-
1
)
return
temp
.
base_defence
;
...
...
@@ -466,7 +466,7 @@ int32 card::get_defence() {
return
assume_value
;
if
(
!
(
data
.
type
&
TYPE_MONSTER
)
&&
!
(
get_type
()
&
TYPE_MONSTER
)
&&
!
is_affected_by_effect
(
EFFECT_PRE_MONSTER
))
return
0
;
if
(
current
.
location
!=
LOCATION_MZONE
||
status
&
STATUS_SUMMONING
)
if
(
current
.
location
!=
LOCATION_MZONE
||
is_status
(
STATUS_SUMMONING
)
)
return
data
.
defence
;
if
(
temp
.
defence
!=
-
1
)
return
temp
.
defence
;
...
...
@@ -2357,7 +2357,7 @@ int32 card::is_setable_szone(uint8 playerid, uint8 ignore_fd) {
}
// return: this is affected by peffect or not
int32
card
::
is_affect_by_effect
(
effect
*
peffect
)
{
if
(
is_status
(
STATUS_SUMMONING
))
if
(
is_status
(
STATUS_SUMMONING
)
&&
peffect
->
code
!=
EFFECT_CANNOT_DISABLE_SUMMON
&&
peffect
->
code
!=
EFFECT_CANNOT_DISABLE_SPSUMMON
)
return
FALSE
;
if
(
!
peffect
||
peffect
->
is_flag
(
EFFECT_FLAG_IGNORE_IMMUNE
))
return
TRUE
;
...
...
operations.cpp
View file @
1358b0ae
...
...
@@ -2335,15 +2335,16 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target, ui
core
.
spsummon_once_map
[
sumplayer
][
*
cit
]
++
;
card_set
cset
;
for
(
auto
cit
=
pgroup
->
container
.
begin
();
cit
!=
pgroup
->
container
.
end
();
++
cit
)
{
(
*
cit
)
->
set_status
(
STATUS_SUMMONING
,
TRUE
);
if
(
!
(
*
cit
)
->
is_affected_by_effect
(
EFFECT_CANNOT_DISABLE_SPSUMMON
))
{
cset
.
insert
(
*
cit
);
}
(
*
cit
)
->
set_status
(
STATUS_SUMMONING
,
TRUE
);
}
if
(
cset
.
size
())
if
(
cset
.
size
())
{
raise_event
(
&
cset
,
EVENT_SPSUMMON
,
core
.
units
.
begin
()
->
peffect
,
0
,
sumplayer
,
sumplayer
,
0
);
process_instant_event
();
add_process
(
PROCESSOR_POINT_EVENT
,
0
,
0
,
0
,
0x101
,
TRUE
);
process_instant_event
();
add_process
(
PROCESSOR_POINT_EVENT
,
0
,
0
,
0
,
0x101
,
TRUE
);
}
return
FALSE
;
}
case
26
:
{
...
...
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