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
8be3a25f
Commit
8be3a25f
authored
Mar 28, 2013
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f1fca420
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
5 deletions
+12
-5
ocgcore/libduel.cpp
ocgcore/libduel.cpp
+4
-1
script/c22653490.lua
script/c22653490.lua
+1
-1
script/c26570480.lua
script/c26570480.lua
+1
-1
script/c30562585.lua
script/c30562585.lua
+3
-0
script/c37412656.lua
script/c37412656.lua
+1
-0
script/c57666212.lua
script/c57666212.lua
+1
-1
script/c77121851.lua
script/c77121851.lua
+1
-1
No files found.
ocgcore/libduel.cpp
View file @
8be3a25f
...
...
@@ -1454,7 +1454,10 @@ int32 scriptlib::duel_get_attack_target(lua_State *L) {
int32
scriptlib
::
duel_disable_attack
(
lua_State
*
L
)
{
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
card
*
attacker
=
pduel
->
game_field
->
core
.
attacker
;
if
(
!
attacker
||
attacker
->
is_affected_by_effect
(
EFFECT_ATTACK_DISABLED
)
if
(
!
attacker
||
(
attacker
->
fieldid_r
!=
pduel
->
game_field
->
core
.
pre_field
[
0
]
&&
attacker
->
fieldid_r
!=
pduel
->
game_field
->
core
.
pre_field
[
1
])
||
(
attacker
->
current
.
position
&
POS_FACEDOWN
)
||
attacker
->
is_affected_by_effect
(
EFFECT_ATTACK_DISABLED
)
||
!
attacker
->
is_affect_by_effect
(
pduel
->
game_field
->
core
.
reason_effect
))
lua_pushboolean
(
L
,
0
);
else
{
...
...
script/c22653490.lua
View file @
8be3a25f
...
...
@@ -41,7 +41,7 @@ function c22653490.tdtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c22653490
.
tdop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
and
tc
:
Is
Facedown
()
and
tc
:
Is
RelateToEffect
(
e
)
then
Duel
.
SendtoDeck
(
tc
,
nil
,
1
,
REASON_EFFECT
)
end
end
...
...
script/c26570480.lua
View file @
8be3a25f
...
...
@@ -39,7 +39,7 @@ end
function
c26570480
.
cfilter
(
c
,
tp
)
local
np
=
c
:
GetPosition
()
local
pp
=
c
:
GetPreviousPosition
()
return
((
np
==
POS_FACEUP_DEFENCE
and
pp
==
POS_FACEUP_ATTACK
)
or
(
pp
==
POS_FACEUP_DEFENCE
and
np
==
POS_FACEUP_ATTACK
))
return
((
np
==
POS_FACEUP_DEFENCE
and
pp
==
POS_FACEUP_ATTACK
)
or
(
bit
.
band
(
pp
,
POS_DEFENCE
)
~=
0
and
np
==
POS_FACEUP_ATTACK
))
and
c
:
IsControler
(
tp
)
and
c
:
IsSetCard
(
0x71
)
end
function
c26570480
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c30562585.lua
View file @
8be3a25f
...
...
@@ -35,6 +35,9 @@ function c30562585.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c30562585
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
local
tc
=
g
:
GetFirst
()
local
dg
=
Duel
.
GetMatchingGroup
(
c30562585
.
dfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
tc
,
tc
:
GetAttack
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
dg
,
dg
:
GetCount
(),
0
,
0
)
end
function
c30562585
.
dfilter
(
c
,
atk
)
return
c
:
IsFaceup
()
and
c
:
IsDestructable
()
and
c
:
GetAttack
()
<
atk
...
...
script/c37412656.lua
View file @
8be3a25f
...
...
@@ -33,6 +33,7 @@ function c37412656.activate(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
BreakEffect
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
c37412656
.
dfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tc
:
GetAttack
())
Duel
.
Destroy
(
dg
,
REASON_EFFECT
)
...
...
script/c57666212.lua
View file @
8be3a25f
...
...
@@ -5,7 +5,7 @@ function c57666212.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
57666212
,
0
))
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetTarget
(
c57666212
.
target
)
e1
:
SetOperation
(
c57666212
.
operation
)
...
...
script/c77121851.lua
View file @
8be3a25f
...
...
@@ -20,7 +20,7 @@ function c77121851.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c77121851
.
tgop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_RETURN
)
~=
0
then
return
end
if
bit
.
band
(
r
,
REASON_RETURN
+
REASON_ADJUST
)
~=
0
then
return
end
e
:
GetHandler
():
RegisterFlagEffect
(
77121851
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c77121851
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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