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
YGOPRO-520DIY
ygopro
Commits
9ea3c77f
Commit
9ea3c77f
authored
Jul 30, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
228ece20
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
4 deletions
+30
-4
gframe/event_handler.cpp
gframe/event_handler.cpp
+17
-0
ocgcore/processor.cpp
ocgcore/processor.cpp
+5
-1
script/c42589641.lua
script/c42589641.lua
+5
-2
script/c55713623.lua
script/c55713623.lua
+1
-1
script/c97997309.lua
script/c97997309.lua
+2
-0
No files found.
gframe/event_handler.cpp
View file @
9ea3c77f
...
...
@@ -913,6 +913,23 @@ bool ClientField::OnEvent(const irr::SEvent& event) {
ShowSelectCard
(
true
);
break
;
}
if
(
mainGame
->
dInfo
.
player_type
==
7
)
{
if
(
mainGame
->
wCardSelect
->
isVisible
())
break
;
selectable_cards
.
clear
();
switch
(
hovered_location
)
{
case
LOCATION_GRAVE
:
{
for
(
int32
i
=
(
int32
)
grave
[
hovered_controler
].
size
()
-
1
;
i
>=
0
;
--
i
)
selectable_cards
.
push_back
(
grave
[
hovered_controler
][
i
]);
myswprintf
(
formatBuffer
,
L"%ls(%d)"
,
dataManager
.
GetSysString
(
1004
),
grave
[
hovered_controler
].
size
());
mainGame
->
wCardSelect
->
setText
(
formatBuffer
);
break
;
}
}
if
(
selectable_cards
.
size
())
ShowSelectCard
(
true
);
break
;
}
if
(
hovered_location
&
0xe
)
clicked_card
=
GetCard
(
hovered_controler
,
hovered_location
,
hovered_sequence
);
else
clicked_card
=
0
;
...
...
ocgcore/processor.cpp
View file @
9ea3c77f
...
...
@@ -4351,8 +4351,12 @@ int32 field::sort_chain(uint16 step, uint8 tp) {
int32 field::solve_continuous(uint16 step, effect * peffect, uint8 triggering_player) {
switch(step) {
case 0: {
chain newchain;
core.solving_event.splice(core.solving_event.begin(), core.sub_solving_event);
if(!peffect->is_activateable(triggering_player, core.solving_event.front())) {
core.solving_event.pop_front();
return TRUE;
}
chain newchain;
newchain.chain_id = 0;
newchain.chain_count = 0;
newchain.triggering_effect = peffect;
...
...
script/c42589641.lua
View file @
9ea3c77f
--星輝士 トライヴェール
function
c42589641
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
XyzFilterFunctionF
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsSetCard
,
0x9c
)
,
4
),
3
)
aux
.
AddXyzProcedure
(
c
,
aux
.
XyzFilterFunctionF
(
c
,
c42589641
.
xyzfilter
,
4
),
3
)
c
:
EnableReviveLimit
()
--summon limit
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -72,6 +72,9 @@ function c42589641.checkop(e,tp,eg,ep,ev,re,r,rp)
if
p1
then
Duel
.
RegisterFlagEffect
(
0
,
42589641
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
if
p2
then
Duel
.
RegisterFlagEffect
(
1
,
42589641
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c42589641
.
xyzfilter
(
c
)
return
Duel
.
GetFlagEffect
(
c
:
GetControler
(),
42589641
)
==
0
and
c
:
IsSetCard
(
0x9c
)
end
function
c42589641
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_XYZ
end
...
...
@@ -89,7 +92,7 @@ function c42589641.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return
not
c
:
IsSetCard
(
0x9c
)
end
function
c42589641
.
splimit
(
e
,
se
,
sp
,
st
,
spos
,
tgp
)
return
bit
.
band
(
st
,
SUMMON_TYPE_XYZ
)
==
SUMMON_TYPE_XYZ
and
Duel
.
GetFlagEffect
(
tgp
,
42589641
)
~
=
0
return
bit
.
band
(
st
,
SUMMON_TYPE_XYZ
)
~=
SUMMON_TYPE_XYZ
or
Duel
.
GetFlagEffect
(
tgp
,
42589641
)
=
=
0
end
function
c42589641
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_XYZ
...
...
script/c55713623.lua
View file @
9ea3c77f
...
...
@@ -28,7 +28,7 @@ function c55713623.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetValue
(
tc
:
Get
Text
Attack
()
/
2
)
e1
:
SetValue
(
tc
:
Get
Base
Attack
()
/
2
)
tc
:
RegisterEffect
(
e1
)
end
end
script/c97997309.lua
View file @
9ea3c77f
...
...
@@ -20,6 +20,7 @@ function c97997309.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetHintTiming
(
0
,
0x1c0
+
TIMING_BATTLE_PHASE
)
e2
:
SetCountLimit
(
1
,
97997309
+
EFFECT_COUNT_CODE_OATH
)
e2
:
SetCondition
(
c97997309
.
condition
)
e2
:
SetCost
(
c97997309
.
cost
)
e2
:
SetTarget
(
c97997309
.
target2
)
...
...
@@ -32,6 +33,7 @@ function c97997309.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetHintTiming
(
0
,
0x1e0
)
e3
:
SetCountLimit
(
1
,
97997309
+
EFFECT_COUNT_CODE_OATH
)
e3
:
SetCondition
(
c97997309
.
condition
)
e3
:
SetCost
(
c97997309
.
cost
)
e3
:
SetTarget
(
c97997309
.
target3
)
...
...
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