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
REIKAI
ygopro
Commits
d2f13209
Commit
d2f13209
authored
Jun 08, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f7def221
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
15 deletions
+21
-15
ocgcore/processor.cpp
ocgcore/processor.cpp
+1
-1
script/c25460258.lua
script/c25460258.lua
+0
-1
script/c36378213.lua
script/c36378213.lua
+9
-3
script/c3701074.lua
script/c3701074.lua
+5
-3
script/c38522377.lua
script/c38522377.lua
+3
-2
script/c60202749.lua
script/c60202749.lua
+2
-2
script/c75292259.lua
script/c75292259.lua
+0
-1
script/c99342953.lua
script/c99342953.lua
+1
-2
No files found.
ocgcore/processor.cpp
View file @
d2f13209
...
...
@@ -2049,7 +2049,7 @@ int32 field::process_quick_effect(int16 step, int32 special, uint8 priority) {
for
(
auto
cait
=
core
.
current_chain
.
begin
();
cait
!=
core
.
current_chain
.
end
();
++
cait
)
{
if
(
cait
->
triggering_player
==
priority
)
{
if
(
!
(
peffect
->
flag
&
EFFECT_FLAG_MULTIACT_HAND
))
{
if
(
cait
->
triggering_location
==
LOCATION_HAND
||
cait
->
triggering_effect
->
handler
->
data
.
code
==
peffect
->
handler
->
data
.
code
)
{
if
(
cait
->
triggering_location
==
LOCATION_HAND
)
{
act
=
false
;
break
;
}
...
...
script/c25460258.lua
View file @
d2f13209
...
...
@@ -21,7 +21,6 @@ function c25460258.initial_effect(c)
e2
:
SetTarget
(
c25460258
.
rmtg
)
e2
:
SetOperation
(
c25460258
.
rmop
)
c
:
RegisterEffect
(
e2
)
end
function
c25460258
.
spfilter
(
c
,
att
)
return
c
:
IsAttribute
(
att
)
and
c
:
IsAbleToRemoveAsCost
()
...
...
script/c36378213.lua
View file @
d2f13209
...
...
@@ -18,16 +18,22 @@ function c36378213.filter(c,e,tp)
end
function
c36378213
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
eg
:
Filter
(
c36378213
.
filter
,
nil
,
e
,
tp
)
if
chk
==
0
then
return
g
:
GetCount
()
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
=
g
:
GetCount
()
end
if
chk
==
0
then
return
g
:
GetCount
()
~=
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
g
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c36378213
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsPreviousLocation
(
LOCATION_GRAVE
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsSetCard
(
0x16
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsRelateToEffect
(
e
)
end
function
c36378213
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
if
ft
<=
0
then
return
end
local
g
=
eg
:
Filter
(
c36378213
.
spfilter
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
==
0
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
g
:
GetCount
()
then
return
end
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
g
=
g
:
Select
(
tp
,
1
,
ft
,
nil
)
end
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
script/c3701074.lua
View file @
d2f13209
...
...
@@ -46,7 +46,6 @@ function c3701074.filter(c,e,tp)
end
function
c3701074
.
rectg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c3701074
.
filter
,
1
,
nil
,
nil
,
tp
)
end
local
g
=
eg
:
Filter
(
c3701074
.
filter
,
nil
,
nil
,
tp
)
Duel
.
SetTargetCard
(
eg
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
1
-
tp
,
0
)
end
...
...
@@ -54,7 +53,10 @@ function c3701074.recop2(e,tp,eg,ep,ev,re,r,rp)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
g
=
eg
:
Filter
(
c3701074
.
filter
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
then
local
rec
=
g
:
GetSum
(
Card
.
GetAttack
)
/
2
Duel
.
Recover
(
1
-
tp
,
rec
,
REASON_EFFECT
)
if
g
:
GetCount
()
>
1
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
g
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
end
Duel
.
Recover
(
1
-
tp
,
g
:
GetFirst
():
GetAttack
()
/
2
,
REASON_EFFECT
)
end
end
script/c38522377.lua
View file @
d2f13209
...
...
@@ -51,13 +51,14 @@ end
function
c38522377
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
c38522377
.
atkfilter
,
nil
,
e
)
Duel
.
SendtoGrave
(
g
,
REASON_EFFECT
)
local
tc
=
g
:
GetFirst
()
local
og
=
Duel
.
GetOperatedGroup
()
local
tc
=
og
:
GetFirst
()
local
atk
=
0
while
tc
do
local
oatk
=
tc
:
GetTextAttack
()
if
oatk
<
0
then
oatk
=
0
end
atk
=
atk
+
oatk
tc
=
g
:
GetNext
()
tc
=
o
g
:
GetNext
()
end
if
atk
~=
0
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
...
...
script/c60202749.lua
View file @
d2f13209
...
...
@@ -41,9 +41,9 @@ function c60202749.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1
:
SetOperation
(
c60202749
.
sdesop
)
if
Duel
.
GetCurrentPhase
()
==
PHASE_END
and
Duel
.
GetTurnPlayer
()
~=
tp
then
e1
:
SetLabel
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_OPPO_TURN
,
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_
PHASE
+
PHASE_END
+
RESET_
OPPO_TURN
,
2
)
else
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_OPPO_TURN
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_
PHASE
+
PHASE_END
+
RESET_
OPPO_TURN
)
end
e
:
GetHandler
():
RegisterEffect
(
e1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_DECK
)
...
...
script/c75292259.lua
View file @
d2f13209
...
...
@@ -13,7 +13,6 @@ function c75292259.atcon(e,tp,eg,ep,ev,re,r,rp)
local
bc
=
c
:
GetBattleTarget
()
return
c
==
Duel
.
GetAttacker
()
and
bc
and
bc
:
IsRelateToBattle
()
and
bc
:
GetBattlePosition
()
==
POS_FACEUP_ATTACK
and
c
:
IsChainAttackable
(
3
)
end
function
c75292259
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
75292259
,
0
))
then
...
...
script/c99342953.lua
View file @
d2f13209
...
...
@@ -27,8 +27,7 @@ function c99342953.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c99342953
.
ctfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc
)
and
(
not
c
:
IsReason
(
REASON_BATTLE
)
or
bit
.
band
(
c
:
GetBattlePosition
(),
POS_FACEUP
)
~=
0
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xc
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
end
function
c99342953
.
ctcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c99342953
.
ctfilter
,
1
,
nil
)
...
...
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