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
nanahira
ygopro
Commits
d657ce1e
Commit
d657ce1e
authored
Sep 04, 2015
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
71f27d1c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
12 deletions
+2
-12
ocgcore/card.cpp
ocgcore/card.cpp
+1
-1
script/c23303072.lua
script/c23303072.lua
+0
-2
script/c47942531.lua
script/c47942531.lua
+0
-3
script/c6614221.lua
script/c6614221.lua
+0
-2
script/c74506079.lua
script/c74506079.lua
+1
-1
script/c8794435.lua
script/c8794435.lua
+0
-3
No files found.
ocgcore/card.cpp
View file @
d657ce1e
...
...
@@ -1023,7 +1023,7 @@ int32 card::add_effect(effect* peffect) {
remove_effect
(
rm
->
second
);
}
}
if
(
peffect
->
code
==
EFFECT_SET_DEFENCE
&&
!
(
peffect
->
flag
&
EFFECT_FLAG_SINGLE_RANGE
))
{
if
(
(
peffect
->
code
==
EFFECT_SET_DEFENCE
||
peffect
->
code
==
EFFECT_SET_BASE_DEFENCE
)
&&
!
(
peffect
->
flag
&
EFFECT_FLAG_SINGLE_RANGE
))
{
for
(
it
=
single_effect
.
begin
();
it
!=
single_effect
.
end
();)
{
rm
=
it
++
;
if
((
rm
->
second
->
code
==
EFFECT_SET_DEFENCE
||
rm
->
second
->
code
==
EFFECT_SET_DEFENCE_FINAL
)
...
...
script/c23303072.lua
View file @
d657ce1e
...
...
@@ -40,8 +40,6 @@ function c23303072.spop(e,tp,eg,ep,ev,re,r,rp,c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
sum
*
300
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
...
...
script/c47942531.lua
View file @
d657ce1e
...
...
@@ -19,14 +19,11 @@ function c47942531.valcheck(e,c)
local
atk
=
0
if
tc
then
atk
=
tc
:
GetTextAttack
()
*
2
end
if
atk
<
0
then
atk
=
0
end
--atk continuous effect
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
...
...
script/c6614221.lua
View file @
d657ce1e
...
...
@@ -42,8 +42,6 @@ function c6614221.valcheck(e,c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
...
...
script/c74506079.lua
View file @
d657ce1e
...
...
@@ -47,7 +47,7 @@ function c74506079.regop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
ae
=
Effect
.
CreateEffect
(
c
)
ae
:
SetType
(
EFFECT_TYPE_SINGLE
)
ae
:
SetCode
(
EFFECT_
UPDATE
_ATTACK
)
ae
:
SetCode
(
EFFECT_
SET
_ATTACK
)
ae
:
SetValue
(
ct
*
500
)
ae
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
ae
)
...
...
script/c8794435.lua
View file @
d657ce1e
...
...
@@ -25,12 +25,9 @@ function c8794435.valcheck(e,c)
end
if
e
:
GetLabel
()
==
1
then
e
:
SetLabel
(
0
)
--atk continuous effect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetValue
(
atk
)
e1
:
SetReset
(
RESET_EVENT
+
0xff0000
)
c
:
RegisterEffect
(
e1
)
...
...
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