Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
3935b2d5
Commit
3935b2d5
authored
Sep 04, 2015
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
card::add_effect()
parent
8f982872
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ocgcore/card.cpp
ocgcore/card.cpp
+1
-1
script/c74506079.lua
script/c74506079.lua
+1
-1
No files found.
ocgcore/card.cpp
View file @
3935b2d5
...
@@ -1023,7 +1023,7 @@ int32 card::add_effect(effect* peffect) {
...
@@ -1023,7 +1023,7 @@ int32 card::add_effect(effect* peffect) {
remove_effect(rm->second);
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();) {
for(it = single_effect.begin(); it != single_effect.end();) {
rm = it++;
rm = it++;
if((rm->second->code == EFFECT_SET_DEFENCE || rm->second->code == EFFECT_SET_DEFENCE_FINAL)
if((rm->second->code == EFFECT_SET_DEFENCE || rm->second->code == EFFECT_SET_DEFENCE_FINAL)
...
...
script/c74506079.lua
View file @
3935b2d5
...
@@ -47,7 +47,7 @@ function c74506079.regop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -47,7 +47,7 @@ function c74506079.regop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ae
=
Effect
.
CreateEffect
(
c
)
local
ae
=
Effect
.
CreateEffect
(
c
)
ae
:
SetType
(
EFFECT_TYPE_SINGLE
)
ae
:
SetType
(
EFFECT_TYPE_SINGLE
)
ae
:
SetCode
(
EFFECT_
UPDATE
_ATTACK
)
ae
:
SetCode
(
EFFECT_
SET
_ATTACK
)
ae
:
SetValue
(
ct
*
500
)
ae
:
SetValue
(
ct
*
500
)
ae
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
ae
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
ae
)
c
:
RegisterEffect
(
ae
)
...
...
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