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
997c67d0
Commit
997c67d0
authored
Feb 15, 2012
by
argon.sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arcana
parent
d0b875a6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
211 additions
and
1 deletion
+211
-1
ocgcore/card.cpp
ocgcore/card.cpp
+1
-1
ocgcore/operations.cpp
ocgcore/operations.cpp
+2
-0
script/c5861892.lua
script/c5861892.lua
+46
-0
script/c62784717.lua
script/c62784717.lua
+48
-0
script/c69831560.lua
script/c69831560.lua
+114
-0
No files found.
ocgcore/card.cpp
View file @
997c67d0
...
...
@@ -882,7 +882,7 @@ void card::reset(uint32 id, uint32 reset_type) {
pr
=
field_effect
.
equal_range
(
EFFECT_DISABLE_FIELD
);
for
(;
pr
.
first
!=
pr
.
second
;
++
pr
.
first
)
pr
.
first
->
second
->
value
=
0
;
set_status
(
STATUS_UNION
,
FALSE
);
set_status
(
STATUS_UNION
+
STATUS_BATTLE_DESTROYED
,
FALSE
);
}
if
(
id
&
0x57e0000
)
{
counters
.
clear
();
...
...
ocgcore/operations.cpp
View file @
997c67d0
...
...
@@ -2229,6 +2229,8 @@ int32 field::send_to(uint16 step, group * targets, effect * reason_effect, uint3
(
*
cit
)
->
operation_param
=
((
*
cit
)
->
operation_param
&
0xffff0000
)
+
(
redirect
<<
8
)
+
(
redirect
>>
16
);
dest
=
redirect
;
}
if
((
*
cit
)
->
is_status
(
STATUS_BATTLE_DESTROYED
)
&&
!
((
*
cit
)
->
current
.
reason
&
REASON_DESTROY
))
(
*
cit
)
->
current
.
reason
|=
REASON_DESTROY
|
REASON_BATTLE
;
if
(((
*
cit
)
->
current
.
location
&
LOCATION_ONFIELD
)
&&
!
(
*
cit
)
->
is_status
(
STATUS_SUMMON_DISABLED
))
{
raise_single_event
(
*
cit
,
EVENT_LEAVE_FIELD_P
,
(
*
cit
)
->
current
.
reason_effect
,
(
*
cit
)
->
current
.
reason
,
(
*
cit
)
->
current
.
reason_player
,
0
,
0
);
leave_p
.
insert
(
*
cit
);
...
...
script/c5861892.lua
View file @
997c67d0
--アルカナフォースEX-THE LIGHT RULER
function
c5861892
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--spsummon proc
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -60,6 +61,19 @@ function c5861892.arcanareg(c,coin)
e1
:
SetOperation
(
c5861892
.
thop
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e1
)
--
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
34568403
,
2
))
e2
:
SetCategory
(
CATEGORY_NEGATE
+
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_QUICK_F
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
c5861892
.
negcon
)
e2
:
SetTarget
(
c5861892
.
negtg
)
e2
:
SetOperation
(
c5861892
.
negop
)
e2
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
0x1ff0000
,
0
,
1
,
coin
)
end
function
c5861892
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -81,3 +95,35 @@ function c5861892.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
function
c5861892
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
false
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
not
g
:
IsContains
(
c
)
then
return
false
end
return
c
:
GetFlagEffectLabel
(
36690018
)
==
0
and
(
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
re
:
IsActiveType
(
TYPE_MONSTER
))
and
Duel
.
IsChainInactivatable
(
ev
)
end
function
c5861892
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
GetHandler
():
IsDestructable
()
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
eg
,
1
,
0
,
0
)
end
end
function
c5861892
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsFaceup
()
or
c
:
GetAttack
()
<
1000
or
not
c
:
IsRelateToEffect
(
e
)
or
Duel
.
GetCurrentChain
()
~=
ev
+
1
then
return
end
Duel
.
NegateActivation
(
ev
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
1000
)
c
:
RegisterEffect
(
e1
)
end
script/c62784717.lua
0 → 100644
View file @
997c67d0
--死神の巡遊
function
c62784717
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
c
:
RegisterEffect
(
e1
)
--coin
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
62784717
,
0
))
e2
:
SetCategory
(
CATEGORY_COIN
)
e2
:
SetProperty
(
EFFECT_FLAG_REPEAT
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_STANDBY
)
e2
:
SetCondition
(
c62784717
.
coincon
)
e2
:
SetTarget
(
c62784717
.
cointg
)
e2
:
SetOperation
(
c62784717
.
coinop
)
c
:
RegisterEffect
(
e2
)
end
function
c62784717
.
coincon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
tp
~=
Duel
.
GetTurnPlayer
()
end
function
c62784717
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c62784717
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
res
=
Duel
.
TossCoin
(
tp
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_SUMMON
)
if
res
==
0
then
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetTargetRange
(
1
,
0
)
else
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e1
:
SetTargetRange
(
0
,
1
)
end
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_CANNOT_FLIP_SUMMON
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
script/c69831560.lua
0 → 100644
View file @
997c67d0
--アルカナフォースEX-THE DARK RULER
function
c69831560
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
--spsummon proc
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_SPSUMMON_PROC
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCondition
(
c69831560
.
spcon
)
e1
:
SetOperation
(
c69831560
.
spop
)
c
:
RegisterEffect
(
e1
)
--cannot special summon
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SPSUMMON_CONDITION
)
c
:
RegisterEffect
(
e2
)
--coin
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
69831560
,
0
))
e3
:
SetCategory
(
CATEGORY_COIN
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetTarget
(
c69831560
.
cointg
)
e3
:
SetOperation
(
c69831560
.
coinop
)
c
:
RegisterEffect
(
e3
)
end
function
c69831560
.
spcon
(
e
,
c
)
if
c
==
nil
then
return
true
end
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
3
,
nil
)
end
function
c69831560
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToGraveAsCost
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
3
,
3
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
c69831560
.
cointg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
c69831560
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
or
c
:
IsFacedown
()
then
return
end
local
res
=
0
if
c
:
IsHasEffect
(
73206827
)
then
res
=
1
-
Duel
.
SelectOption
(
tp
,
60
,
61
)
else
res
=
Duel
.
TossCoin
(
tp
,
1
)
end
c69831560
.
arcanareg
(
c
,
res
)
end
function
c69831560
.
arcanareg
(
c
,
coin
)
--coin effect
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetCondition
(
c69831560
.
macon
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EVENT_PHASE
+
PHASE_BATTLE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetCondition
(
c69831560
.
poscon
)
e2
:
SetOperation
(
c69831560
.
posop
)
e2
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e2
)
--
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e3
:
SetOperation
(
c69831560
.
desop1
)
e3
:
SetReset
(
RESET_EVENT
+
0x1ff0000
)
c
:
RegisterEffect
(
e3
)
--
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_LEAVE_FIELD
)
e4
:
SetOperation
(
c69831560
.
desop2
)
e4
:
SetReset
(
RESET_EVENT
+
0x17f0000
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterFlagEffect
(
36690018
,
RESET_EVENT
+
0x1ff0000
,
0
,
1
,
coin
)
end
function
c69831560
.
macon
(
e
)
return
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
1
end
function
c69831560
.
poscon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
GetFlagEffectLabel
(
36690018
)
==
1
and
c
:
GetAttackAnnouncedCount
()
>=
2
end
function
c69831560
.
posop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
c
:
IsAttack
()
then
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENCE
)
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_CHANGE_POSITION
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_COPY_INHERIT
)
e1
:
SetReset
(
RESET_EVENT
+
0x1ff0000
+
RESET_PHASE
+
PHASE_END
+
RESET_SELF_TURN
,
2
)
c
:
RegisterEffect
(
e1
)
end
function
c69831560
.
desop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsReason
(
REASON_DESTROY
)
and
e
:
GetHandler
():
GetFlagEffectLabel
(
36690018
)
==
0
then
e
:
GetHandler
():
RegisterFlagEffect
(
69831560
,
RESET_EVENT
+
0x17f0000
,
0
,
1
)
end
end
function
c69831560
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetFlagEffect
(
69831560
)
~=
0
then
local
g
=
Duel
.
GetFieldGroup
(
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
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