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
e5dcc0fe
Commit
e5dcc0fe
authored
May 28, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d631b234
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
19 deletions
+12
-19
ocgcore/field.cpp
ocgcore/field.cpp
+1
-1
script/c22200403.lua
script/c22200403.lua
+1
-0
script/c26509612.lua
script/c26509612.lua
+2
-3
script/c32543380.lua
script/c32543380.lua
+1
-0
script/c48582558.lua
script/c48582558.lua
+5
-15
script/c86676862.lua
script/c86676862.lua
+1
-0
script/c90740329.lua
script/c90740329.lua
+1
-0
No files found.
ocgcore/field.cpp
View file @
e5dcc0fe
...
...
@@ -1600,7 +1600,7 @@ int32 field::get_attack_target(card* pcard, card_vector* v, uint8 chain_attack)
card_vector
::
iterator
cit
;
for
(
uint32
i
=
0
;
i
<
5
;
++
i
)
{
atarget
=
player
[
1
-
p
].
list_mzone
[
i
];
if
(
atarget
&&
atarget
->
is_affected_by_effect
(
EFFECT_MUST_BE_ATTACKED
))
if
(
atarget
&&
atarget
->
is_affected_by_effect
(
EFFECT_MUST_BE_ATTACKED
,
pcard
))
must_be_attack
.
push_back
(
atarget
);
}
if
(
pcard
->
attack_all_target
&&
(
peffect
=
pcard
->
is_affected_by_effect
(
EFFECT_ATTACK_ALL
)))
{
...
...
script/c22200403.lua
View file @
e5dcc0fe
...
...
@@ -37,6 +37,7 @@ function c22200403.initial_effect(c)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e5
:
SetCondition
(
c22200403
.
effcon
)
e5
:
SetValue
(
1
)
e5
:
SetLabel
(
3
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
...
...
script/c26509612.lua
View file @
e5dcc0fe
...
...
@@ -36,8 +36,7 @@ function c26509612.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e3
:
SetTarget
(
c26509612
.
attg2
)
e3
:
SetValue
(
c26509612
.
attg
)
...
...
@@ -48,5 +47,5 @@ function c26509612.attg(e,c)
return
c
:
IsLevelBelow
(
4
)
end
function
c26509612
.
attg2
(
e
,
c
)
return
c
:
Is
Facedown
()
or
not
c
:
Is
Code
(
74711057
)
return
c
:
IsCode
(
74711057
)
end
script/c32543380.lua
View file @
e5dcc0fe
...
...
@@ -22,6 +22,7 @@ function c32543380.initial_effect(c)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
--special summon
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
script/c48582558.lua
View file @
e5dcc0fe
...
...
@@ -34,20 +34,10 @@ function c48582558.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EFFECT_CANNOT_SELECT_BATTLE_TARGET
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetCondition
(
c48582558
.
atkcon
)
e3
:
SetValue
(
c48582558
.
atlimit
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e3
:
SetLabelObject
(
tc
)
e3
:
SetLabel
(
tc
:
GetRealFieldID
())
Duel
.
RegisterEffect
(
e3
,
tp
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e3
:
SetValue
(
aux
.
imval1
)
e3
:
SetReset
(
RESET_EVENT
+
0x1fc0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
end
end
function
c48582558
.
atkcon
(
e
)
return
e
:
GetLabelObject
():
GetRealFieldID
()
==
e
:
GetLabel
()
end
function
c48582558
.
atlimit
(
e
,
c
)
return
c
:
GetRealFieldID
()
~=
e
:
GetLabel
()
end
script/c86676862.lua
View file @
e5dcc0fe
...
...
@@ -32,6 +32,7 @@ function c86676862.initial_effect(c)
e5
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e5
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetValue
(
1
)
c
:
RegisterEffect
(
e5
)
end
function
c86676862
.
splimit
(
e
,
se
,
sp
,
st
)
...
...
script/c90740329.lua
View file @
e5dcc0fe
...
...
@@ -26,6 +26,7 @@ function c90740329.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_MUST_BE_ATTACKED
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
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