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
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
Commits
fe659c72
Commit
fe659c72
authored
May 14, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
75e3b501
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
21 deletions
+19
-21
ocgcore/operations.cpp
ocgcore/operations.cpp
+1
-0
ocgcore/processor.cpp
ocgcore/processor.cpp
+2
-0
script/c16178681.lua
script/c16178681.lua
+4
-2
script/c58554959.lua
script/c58554959.lua
+6
-17
script/c61258740.lua
script/c61258740.lua
+1
-1
script/c73445448.lua
script/c73445448.lua
+4
-0
script/c81913510.lua
script/c81913510.lua
+1
-1
No files found.
ocgcore/operations.cpp
View file @
fe659c72
...
...
@@ -3279,6 +3279,7 @@ int32 field::move_to_field(uint16 step, card * target, uint32 enable, uint32 ret
else
flag = ((flag << 16) & 0xff0000) | 0xff00ffff;
}
flag |= 0xe0e0e0e0;
add_process(PROCESSOR_SELECT_PLACE, 0, 0, 0, 0x10000 + move_player, flag);
}
return FALSE;
...
...
ocgcore/processor.cpp
View file @
fe659c72
...
...
@@ -4674,6 +4674,7 @@ int32 field::refresh_location_info(uint16 step) {
flag = ((flag << 8) & 0xff00) | 0xffff00ff;
else
flag = (flag & 0xff) | 0xffffff00;
flag |= 0xe0e0e0e0;
add_process(PROCESSOR_SELECT_DISFIELD, 0, 0, 0, p + (count1 << 16), flag);
return FALSE;
}
...
...
@@ -4725,6 +4726,7 @@ int32 field::refresh_location_info(uint16 step) {
flag = ((flag << 8) & 0xff00) | 0xffff00ff;
else
flag = (flag & 0xff) | 0xffffff00;
flag |= 0xe0e0e0e0;
add_process(PROCESSOR_SELECT_DISFIELD, 0, 0, 0, p + (count1 << 16), flag);
return FALSE;
}
...
...
script/c16178681.lua
View file @
fe659c72
...
...
@@ -43,10 +43,12 @@ function c16178681.rdcon(e,tp,eg,ep,ev,re,r,rp)
if
seq
~=
6
and
seq
~=
7
then
return
false
end
local
tc
=
Duel
.
GetAttacker
()
if
tc
:
IsControler
(
1
-
tp
)
then
tc
=
Duel
.
GetAttackTarget
()
end
return
ep
==
tp
and
tc
and
tc
:
IsType
(
TYPE_PENDULUM
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16178681
,
2
))
return
ep
==
tp
and
tc
and
tc
:
IsType
(
TYPE_PENDULUM
)
end
function
c16178681
.
rdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16178681
,
2
))
then
Duel
.
ChangeBattleDamage
(
tp
,
0
)
end
end
function
c16178681
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
...
...
script/c58554959.lua
View file @
fe659c72
--E-HERO マリシャス·エッジ
function
c58554959
.
initial_effect
(
c
)
--
summon with 1
tribute
--
decrease
tribute
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
58554959
,
0
))
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SUMMON_PROC
)
e1
:
SetCondition
(
c58554959
.
otcon
)
e1
:
SetOperation
(
c58554959
.
otop
)
e1
:
SetValue
(
SUMMON_TYPE_ADVANCE
)
e1
:
SetCode
(
EFFECT_DECREASE_TRIBUTE
)
e1
:
SetValue
(
0x1
)
e1
:
SetCondition
(
c58554959
.
deccon
)
c
:
RegisterEffect
(
e1
)
--pierce
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -16,14 +13,6 @@ function c58554959.initial_effect(c)
e2
:
SetCode
(
EFFECT_PIERCE
)
c
:
RegisterEffect
(
e2
)
end
function
c58554959
.
otcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
c
:
GetLevel
()
>
6
and
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
0
,
LOCATION_MZONE
)
~=
0
and
Duel
.
GetTributeCount
(
c
)
>
0
end
function
c58554959
.
otop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
local
g
=
Duel
.
GetTributeGroup
(
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RELEASE
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
c
:
SetMaterial
(
sg
)
Duel
.
Release
(
sg
,
REASON_SUMMON
+
REASON_MATERIAL
)
function
c58554959
.
deccon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
)
~=
0
end
script/c61258740.lua
View file @
fe659c72
...
...
@@ -17,7 +17,7 @@ function c61258740.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c61258740
.
indval
(
e
,
re
,
tp
)
return
e
:
GetHandler
():
GetControler
()
~=
tp
return
e
:
GetHandler
Player
()
==
1
-
tp
end
function
c61258740
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
...
...
script/c73445448.lua
View file @
fe659c72
...
...
@@ -8,6 +8,7 @@ function c73445448.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
e1
:
SetValue
(
c73445448
.
splimit
)
c
:
RegisterEffect
(
e1
)
--negate
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -25,6 +26,9 @@ function c73445448.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
c73445448
.
xyz_number
=
22
function
c73445448
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_XYZ
)
==
SUMMON_TYPE_XYZ
end
function
c73445448
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
...
...
script/c81913510.lua
View file @
fe659c72
...
...
@@ -39,7 +39,7 @@ function c81913510.activate(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
code
=
e
:
GetLabel
()
local
tc
=
Duel
.
GetFirstMatchingCard
(
c81913510
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
nil
,
code
,
e
,
tp
)
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
then
if
tc
and
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
true
,
false
,
POS_FACEUP
)
~=
0
then
tc
:
CompleteProcedure
()
end
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