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
f2051722
Commit
f2051722
authored
Apr 22, 2013
by
argon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b47962f2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
6 deletions
+12
-6
gframe/game.cpp
gframe/game.cpp
+1
-1
gframe/replay.h
gframe/replay.h
+1
-0
ocgcore/operations.cpp
ocgcore/operations.cpp
+7
-2
script/c15240238.lua
script/c15240238.lua
+1
-1
script/c6330307.lua
script/c6330307.lua
+1
-1
script/c94973028.lua
script/c94973028.lua
+1
-1
No files found.
gframe/game.cpp
View file @
f2051722
...
...
@@ -14,7 +14,7 @@
#include <dirent.h>
#endif
const
unsigned
short
PRO_VERSION
=
0x13
0
0
;
const
unsigned
short
PRO_VERSION
=
0x13
1
0
;
namespace
ygo
{
...
...
gframe/replay.h
View file @
f2051722
...
...
@@ -8,6 +8,7 @@ namespace ygo {
#define REPLAY_COMPRESSED 0x1
#define REPLAY_TAG 0x2
#define REPLAY_DECODED 0x4
struct
ReplayHeader
{
unsigned
int
id
;
...
...
ocgcore/operations.cpp
View file @
f2051722
...
...
@@ -1407,6 +1407,8 @@ int32 field::summon(uint16 step, uint8 sumplayer, card * target, effect * proc,
}
if
(
proc
)
remove_oath_effect
(
proc
);
if
(
target
->
current
.
location
==
LOCATION_MZONE
)
send_to
(
target
,
0
,
REASON_RULE
,
sumplayer
,
sumplayer
,
LOCATION_GRAVE
,
0
,
0
);
adjust_instant
();
add_process
(
PROCESSOR_POINT_EVENT
,
0
,
0
,
0
,
FALSE
,
0
);
return
TRUE
;
...
...
@@ -1511,9 +1513,10 @@ int32 field::flip_summon(uint16 step, uint8 sumplayer, card * target) {
return
FALSE
;
}
case
2
:
{
if
(
target
->
is_status
(
STATUS_SUMMONING
))
{
if
(
target
->
is_status
(
STATUS_SUMMONING
))
return
FALSE
;
}
if
(
target
->
current
.
location
==
LOCATION_MZONE
)
send_to
(
target
,
0
,
REASON_RULE
,
sumplayer
,
sumplayer
,
LOCATION_GRAVE
,
0
,
0
);
add_process
(
PROCESSOR_POINT_EVENT
,
0
,
0
,
0
,
FALSE
,
0
);
return
TRUE
;
}
...
...
@@ -2013,6 +2016,8 @@ int32 field::special_summon_rule(uint16 step, uint8 sumplayer, card * target) {
return
FALSE
;
}
remove_oath_effect
(
core
.
units
.
begin
()
->
peffect
);
if
(
target
->
current
.
location
==
LOCATION_MZONE
)
send_to
(
target
,
0
,
REASON_RULE
,
sumplayer
,
sumplayer
,
LOCATION_GRAVE
,
0
,
0
);
adjust_instant
();
add_process
(
PROCESSOR_POINT_EVENT
,
0
,
0
,
0
,
FALSE
,
0
);
return
TRUE
;
...
...
script/c15240238.lua
View file @
f2051722
...
...
@@ -16,7 +16,7 @@ function c15240238.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c15240238
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
0
return
c
:
IsFaceup
()
end
function
c15240238
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c15240238
.
filter
(
chkc
)
end
...
...
script/c6330307.lua
View file @
f2051722
...
...
@@ -63,7 +63,7 @@ function c6330307.atkcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c6330307
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
at
=
Duel
.
GetAttackTarget
()
if
at
:
IsRelateToBattle
()
then
if
at
:
IsRelateToBattle
()
and
not
at
:
IsImmuneToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
...
...
script/c94973028.lua
View file @
f2051722
...
...
@@ -82,7 +82,7 @@ function c94973028.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
g
,
REASON_COST
)
end
function
c94973028
.
desfilter
(
c
)
return
c
:
IsDestructable
()
and
c
:
IsAbleToRemove
()
return
c
:
IsDestructable
()
end
function
c94973028
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsOnField
()
and
c94973028
.
desfilter
(
chkc
)
end
...
...
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