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
feb083ea
Commit
feb083ea
authored
Jan 29, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
black screen fix
parent
2cbec0a5
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
25 additions
and
15 deletions
+25
-15
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+3
-3
gframe/duelclient.cpp
gframe/duelclient.cpp
+1
-1
gframe/event_handler.cpp
gframe/event_handler.cpp
+1
-1
script/c2091298.lua
script/c2091298.lua
+1
-1
script/c23693634.lua
script/c23693634.lua
+1
-1
script/c27541267.lua
script/c27541267.lua
+4
-0
script/c40101111.lua
script/c40101111.lua
+1
-0
script/c41902352.lua
script/c41902352.lua
+1
-1
script/c44635489.lua
script/c44635489.lua
+6
-5
script/c57421866.lua
script/c57421866.lua
+2
-0
script/c90156158.lua
script/c90156158.lua
+1
-1
script/c9888196.lua
script/c9888196.lua
+3
-1
No files found.
gframe/deck_manager.cpp
View file @
feb083ea
...
...
@@ -82,7 +82,7 @@ int DeckManager::CheckLFList(Deck& deck, int lfhash, bool allow_ocg, bool allow_
return
1
;
for
(
int
i
=
0
;
i
<
deck
.
main
.
size
();
++
i
)
{
code_pointer
cit
=
deck
.
main
[
i
];
if
((
!
allow_ocg
&&
(
cit
->
second
.
ot
&
0x1
))
||
(
!
allow_ocg
&&
(
cit
->
second
.
ot
&
0x2
)))
if
((
!
allow_ocg
&&
(
cit
->
second
.
ot
==
0x1
))
||
(
!
allow_tcg
&&
(
cit
->
second
.
ot
==
0x2
)))
return
cit
->
first
;
int
code
=
cit
->
second
.
alias
?
cit
->
second
.
alias
:
cit
->
first
;
ccount
[
code
]
++
;
...
...
@@ -93,7 +93,7 @@ int DeckManager::CheckLFList(Deck& deck, int lfhash, bool allow_ocg, bool allow_
}
for
(
int
i
=
0
;
i
<
deck
.
extra
.
size
();
++
i
)
{
code_pointer
cit
=
deck
.
extra
[
i
];
if
((
!
allow_ocg
&&
(
cit
->
second
.
ot
&
0x1
))
||
(
!
allow_ocg
&&
(
cit
->
second
.
ot
&
0x2
)))
if
((
!
allow_ocg
&&
(
cit
->
second
.
ot
==
0x1
))
||
(
!
allow_tcg
&&
(
cit
->
second
.
ot
==
0x2
)))
return
cit
->
first
;
int
code
=
cit
->
second
.
alias
?
cit
->
second
.
alias
:
cit
->
first
;
ccount
[
code
]
++
;
...
...
@@ -104,7 +104,7 @@ int DeckManager::CheckLFList(Deck& deck, int lfhash, bool allow_ocg, bool allow_
}
for
(
int
i
=
0
;
i
<
deck
.
side
.
size
();
++
i
)
{
code_pointer
cit
=
deck
.
side
[
i
];
if
((
!
allow_ocg
&&
(
cit
->
second
.
ot
&
0x1
))
||
(
!
allow_ocg
&&
(
cit
->
second
.
ot
&
0x2
)))
if
((
!
allow_ocg
&&
(
cit
->
second
.
ot
==
0x1
))
||
(
!
allow_tcg
&&
(
cit
->
second
.
ot
==
0x2
)))
return
cit
->
first
;
int
code
=
cit
->
second
.
alias
?
cit
->
second
.
alias
:
cit
->
first
;
ccount
[
code
]
++
;
...
...
gframe/duelclient.cpp
View file @
feb083ea
...
...
@@ -197,7 +197,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
break
;
}
case
STOC_SELECT_HAND
:
{
mainGame
->
ShowElement
(
mainGame
->
wHand
);
mainGame
->
wHand
->
setVisible
(
true
);
break
;
}
case
STOC_SELECT_TP
:
{
...
...
gframe/event_handler.cpp
View file @
feb083ea
...
...
@@ -26,7 +26,7 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
case
BUTTON_HAND1
:
case
BUTTON_HAND2
:
case
BUTTON_HAND3
:
{
mainGame
->
HideElement
(
mainGame
->
wHand
);
mainGame
->
wHand
->
setVisible
(
false
);
mainGame
->
stHintMsg
->
setText
(
L""
);
mainGame
->
stHintMsg
->
setVisible
(
true
);
CTOS_HandResult
cshr
;
...
...
script/c2091298.lua
View file @
feb083ea
--セイクリッド・ビーハイブ
function
c2091298
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
c2
6329679
.
xyzfilter
,
2
)
aux
.
AddXyzProcedure
(
c
,
c2
091298
.
xyzfilter
,
2
)
c
:
EnableReviveLimit
()
--attack up
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
script/c23693634.lua
View file @
feb083ea
...
...
@@ -24,7 +24,7 @@ function c23693634.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c23693634
.
atkval
(
e
,
c
)
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsRace
,
c
:
GetControler
(),
LOCATION_GRAVE
,
0
,
nil
,
RACE_WARRIOR
)
*
100
return
Duel
.
GetMatchingGroupCount
(
Card
.
IsRace
,
c
:
GetControler
(),
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
RACE_WARRIOR
)
*
100
end
function
c23693634
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetLocation
()
==
LOCATION_GRAVE
...
...
script/c27541267.lua
View file @
feb083ea
...
...
@@ -4,12 +4,16 @@ function c27541267.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c27541267
.
target
)
e1
:
SetOperation
(
c27541267
.
operation
)
c
:
RegisterEffect
(
e1
)
end
function
c27541267
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xa
)
end
function
c27541267
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c27541267
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c27541267
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c27541267
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
tc
=
g
:
GetFirst
()
...
...
script/c40101111.lua
View file @
feb083ea
...
...
@@ -59,6 +59,7 @@ function c40101111.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
local
rec
=
0
if
c
==
a
then
rec
=
d
:
GetAttack
()
else
rec
=
a
:
GetAttack
()
end
if
rec
<
0
then
rec
=
0
end
Duel
.
SetTargetParam
(
rec
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
tp
,
rec
)
end
...
...
script/c41902352.lua
View file @
feb083ea
...
...
@@ -3,7 +3,7 @@ function c41902352.initial_effect(c)
--synchro limit
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
Set
p
roperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
Set
P
roperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
e1
:
SetCondition
(
c41902352
.
synlimit
)
e1
:
SetValue
(
1
)
...
...
script/c44635489.lua
View file @
feb083ea
...
...
@@ -32,14 +32,15 @@ function c44635489.spcon(e,c)
and
Duel
.
GetFieldGroupCount
(
c
:
GetControler
(),
0
,
LOCATION_MZONE
,
nil
)
>
0
and
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
end
function
c44635489
.
filter
(
c
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
GetLevel
()
~=
0
and
((
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
())
or
(
c
:
IsLocation
(
LOCATION_GRAVE
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)))
function
c44635489
.
filter
(
c
,
clv
)
local
lv
=
c
:
GetLevel
()
return
c
:
IsSetCard
(
0x53
)
and
lv
~=
0
and
lv
~=
clv
and
((
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
())
or
c
:
IsLocation
(
LOCATION_GRAVE
))
end
function
c44635489
.
lvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
+
LOCATION_GRAVE
)
and
c44635489
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c44635489
.
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
())
end
Duel
.
SelectTarget
(
tp
,
c44635489
.
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
())
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c44635489
.
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
e
:
GetHandler
()
,
e
:
GetHandler
():
GetLevel
()
)
end
Duel
.
SelectTarget
(
tp
,
c44635489
.
filter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
0
,
1
,
1
,
e
:
GetHandler
()
,
e
:
GetHandler
():
GetLevel
()
)
end
function
c44635489
.
lvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
...
...
script/c57421866.lua
View file @
feb083ea
...
...
@@ -13,6 +13,8 @@ function c57421866.initial_effect(c)
--unreleaseable nonsum
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_UNRELEASEABLE_NONSUM
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
...
...
script/c90156158.lua
View file @
feb083ea
...
...
@@ -22,7 +22,7 @@ function c90156158.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c90156158
.
filter
(
c
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsType
(
TYPE_MONSTER
)
return
c
:
IsSetCard
(
0x53
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
c90156158
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c90156158
.
filter
(
chkc
)
end
...
...
script/c9888196.lua
View file @
feb083ea
...
...
@@ -102,7 +102,9 @@ function c9888196.hdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoGrave
(
sg
,
REASON_EFFECT
)
local
tc
=
sg
:
GetFirst
()
while
tc
do
atk
=
atk
+
tc
:
GetAttack
()
local
tatk
=
tc
:
GetAttack
()
if
tatk
<
0
then
tatk
=
0
end
atk
=
atk
+
tatk
tc
=
sg
:
GetNext
()
end
Duel
.
BreakEffect
()
...
...
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