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
7a2bb808
Commit
7a2bb808
authored
Apr 29, 2014
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
0b95e4cb
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
50 additions
and
41 deletions
+50
-41
ocgcore/effect.cpp
ocgcore/effect.cpp
+1
-1
script/c18175965.lua
script/c18175965.lua
+1
-0
script/c1833916.lua
script/c1833916.lua
+6
-2
script/c22200403.lua
script/c22200403.lua
+1
-1
script/c29143726.lua
script/c29143726.lua
+1
-0
script/c32298781.lua
script/c32298781.lua
+2
-2
script/c43225434.lua
script/c43225434.lua
+2
-2
script/c69757518.lua
script/c69757518.lua
+1
-1
script/c74875003.lua
script/c74875003.lua
+1
-1
script/c89719143.lua
script/c89719143.lua
+1
-1
script/c91110378.lua
script/c91110378.lua
+3
-3
script/c96142517.lua
script/c96142517.lua
+30
-27
No files found.
ocgcore/effect.cpp
View file @
7a2bb808
...
...
@@ -407,7 +407,7 @@ int32 effect::is_immuned(effect_set_v* effects) {
for
(
int
i
=
0
;
i
<
effects
->
count
;
++
i
)
{
peffect
=
effects
->
at
(
i
);
if
(
type
&
0x7f0
)
{
if
(
peffect
->
handler
==
own
er
)
if
(
peffect
->
owner
==
handl
er
)
return
FALSE
;
}
else
{
if
(
peffect
->
owner
==
owner
)
...
...
script/c18175965.lua
View file @
7a2bb808
...
...
@@ -33,6 +33,7 @@ function c18175965.initial_effect(c)
e5
:
SetDescription
(
aux
.
Stringid
(
18175965
,
1
))
e5
:
SetCategory
(
CATEGORY_EQUIP
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e5
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e5
:
SetTarget
(
c18175965
.
eqtg
)
e5
:
SetOperation
(
c18175965
.
eqop
)
...
...
script/c1833916.lua
View file @
7a2bb808
...
...
@@ -7,6 +7,7 @@ function c1833916.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c1833916
.
spcon
)
e1
:
SetCost
(
c1833916
.
spcost
)
e1
:
SetTarget
(
c1833916
.
sptg
)
e1
:
SetOperation
(
c1833916
.
spop
)
...
...
@@ -20,11 +21,14 @@ function c1833916.initial_effect(c)
e2
:
SetCode
(
EVENT_DAMAGE
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetCountLimit
(
1
,
1833916
)
e2
:
SetCondition
(
c1833916
.
spcon
)
e2
:
SetCondition
(
c1833916
.
spcon
2
)
e2
:
SetTarget
(
c1833916
.
sptg2
)
e2
:
SetOperation
(
c1833916
.
spop2
)
c
:
RegisterEffect
(
e2
)
end
function
c1833916
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsAttackPos
()
end
function
c1833916
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x6f
)
and
c
:
IsDiscardable
()
end
...
...
@@ -63,7 +67,7 @@ end
function
c1833916
.
splimit
(
e
,
c
)
return
not
c
:
IsSetCard
(
0x6f
)
end
function
c1833916
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c1833916
.
spcon
2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
end
function
c1833916
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c22200403.lua
View file @
7a2bb808
...
...
@@ -55,7 +55,7 @@ function c22200403.initial_effect(c)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e7
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e7
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e7
:
SetCondition
(
c22200403
.
at
con
)
e7
:
SetCondition
(
c22200403
.
eff
con
)
e7
:
SetTarget
(
c22200403
.
drtg
)
e7
:
SetOperation
(
c22200403
.
drop
)
e7
:
SetLabel
(
4
)
...
...
script/c29143726.lua
View file @
7a2bb808
...
...
@@ -22,6 +22,7 @@ function c29143726.initial_effect(c)
end
function
c29143726
.
spcon1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
~=
tp
and
bit
.
band
(
r
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
and
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
function
c29143726
.
spcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsLocation
(
LOCATION_GRAVE
)
and
e
:
GetHandler
():
IsReason
(
REASON_BATTLE
)
...
...
script/c32298781.lua
View file @
7a2bb808
...
...
@@ -24,13 +24,13 @@ function c32298781.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e1
:
SetValue
(
tc
:
GetBaseAttack
()
+
2000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
f
0000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENCE
)
e2
:
SetValue
(
tc
:
GetBaseDefence
()
+
2000
)
e2
:
SetReset
(
RESET_EVENT
+
0x1f
f
0000
)
e2
:
SetReset
(
RESET_EVENT
+
0x1f
e
0000
)
tc
:
RegisterEffect
(
e2
)
tc
=
g
:
GetNext
()
end
...
...
script/c43225434.lua
View file @
7a2bb808
...
...
@@ -13,8 +13,8 @@ end
function
c43225434
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttackTarget
()
return
at
and
(
a
:
IsControler
(
tp
)
and
a
:
IsType
(
TYPE_FUSION
))
or
(
at
:
IsControler
(
tp
)
and
at
:
IsFaceup
()
and
a
:
IsType
(
TYPE_FUSION
))
return
at
and
(
(
a
:
IsControler
(
tp
)
and
a
:
IsType
(
TYPE_FUSION
))
or
(
at
:
IsControler
(
tp
)
and
at
:
IsFaceup
()
and
a
:
IsType
(
TYPE_FUSION
))
)
end
function
c43225434
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
...
...
script/c69757518.lua
View file @
7a2bb808
...
...
@@ -45,7 +45,7 @@ function c69757518.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c69757518
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsRelateToBattle
()
then
if
e
:
GetHandler
():
IsRelateToBattle
()
and
e
:
GetHandler
():
IsChainAttackable
(
2
,
true
)
then
Duel
.
ChainAttack
()
end
end
...
...
script/c74875003.lua
View file @
7a2bb808
...
...
@@ -55,7 +55,7 @@ function c74875003.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
function
c74875003
.
sumval
(
c
)
function
c74875003
.
sumval
(
e
,
c
)
return
not
c
:
IsCode
(
10000000
)
and
not
c
:
IsCode
(
10000010
)
and
not
c
:
IsCode
(
10000020
)
end
function
c74875003
.
splimit
(
e
,
c
,
sump
,
sumtype
,
sumpos
,
targetp
,
se
)
...
...
script/c89719143.lua
View file @
7a2bb808
...
...
@@ -15,7 +15,7 @@ end
function
c89719143
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
a
=
Duel
.
GetAttacker
()
local
at
=
Duel
.
GetAttackTarget
()
return
a
:
IsFaceup
()
and
a
:
IsType
(
TYPE_FUSION
)
and
at
and
at
:
IsFaceup
()
and
at
:
IsType
(
TYPE_FUSION
)
return
a
and
at
and
a
:
IsFaceup
()
and
a
:
IsType
(
TYPE_FUSION
)
and
at
:
IsFaceup
()
and
at
:
IsType
(
TYPE_FUSION
)
end
function
c89719143
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
a
=
Duel
.
GetAttacker
()
...
...
script/c91110378.lua
View file @
7a2bb808
...
...
@@ -24,11 +24,11 @@ function c91110378.initial_effect(c)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
end
function
c91110378
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x86
)
function
c91110378
.
cfilter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x86
)
and
c
:
GetSummonPlayer
()
==
tp
end
function
c91110378
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c91110378
.
cfilter
,
1
,
nil
)
and
rp
==
tp
return
eg
:
IsExists
(
c91110378
.
cfilter
,
1
,
nil
,
tp
)
end
function
c91110378
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
...
...
script/c96142517.lua
View file @
7a2bb808
--
RUM
-千死蛮巧
--
RUM
-千死蛮巧
function
c96142517
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -26,46 +26,49 @@ function c96142517.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return
e
:
GetHandler
()
~=
se
:
GetHandler
()
end
function
c96142517
.
filter1
(
c
,
e
,
tp
)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c96142517
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetRank
()
+
1
)
local
rk
=
c
:
GetRank
()
return
c
:
IsType
(
TYPE_XYZ
)
and
Duel
.
IsExistingMatchingCard
(
c96142517
.
filter2
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
,
rk
)
and
Duel
.
IsExistingMatchingCard
(
c96142517
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
nil
,
e
,
tp
,
rk
+
1
)
end
function
c96142517
.
filter2
(
c
,
e
,
tp
,
rank
)
return
c
:
GetRank
()
==
rank
and
(
c
:
IsSetCard
(
0x1048
)
or
c
:
IsSetCard
(
0x1073
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
function
c96142517
.
filter2
(
c
,
e
,
tp
,
rk
)
return
c
:
IsType
(
TYPE_XYZ
)
and
c
:
GetRank
()
==
rk
and
c
:
IsCanBeEffectTarget
(
e
)
end
function
c96142517
.
filter3
(
c
,
e
,
tp
,
rank
)
return
c
:
GetRank
()
==
rank
and
c
:
IsType
(
TYPE_XYZ
)
function
c96142517
.
spfilter
(
c
,
e
,
tp
,
rk
)
return
c
:
GetRank
()
==
rk
and
(
c
:
IsSetCard
(
0x1048
)
or
c
:
IsSetCard
(
0x1073
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
SUMMON_TYPE_XYZ
,
tp
,
false
,
false
)
end
function
c96142517
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
c96142517
.
filter1
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c96142517
.
filter1
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingTarget
(
c96142517
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c96142517
.
filter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
rk
=
g1
:
GetFirst
():
GetRank
()
e
:
SetLabel
(
rk
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
tg
=
Duel
.
SelectTarget
(
tp
,
c96142517
.
filter1
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
)
e
:
SetLabel
(
tg
:
GetFirst
():
GetRank
())
local
g
=
Duel
.
GetMatchingGroup
(
c96142517
.
filter3
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
tg
:
GetFirst
(),
e
,
tp
,
tg
:
GetFirst
():
GetRank
())
local
g2
=
Duel
.
SelectTarget
(
tp
,
c96142517
.
filter2
,
tp
,
0
,
LOCATION_GRAVE
,
1
,
1
,
nil
,
e
,
tp
,
rk
)
g1
:
Merge
(
g2
)
local
g
=
Duel
.
GetMatchingGroup
(
c96142517
.
filter2
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
nil
,
e
,
tp
,
rk
)
g
:
Sub
(
g1
)
if
g
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
96142517
,
1
))
then
g
=
g
:
Select
(
tp
,
1
,
99
,
nil
)
tg
:
Merge
(
g
)
local
tc
=
g
:
GetFirst
()
while
tc
do
Duel
.
SetTargetCard
(
tc
)
tc
=
g
:
GetNext
()
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
local
sg
=
g
:
Select
(
tp
,
1
,
99
,
nil
)
Duel
.
SetTargetCard
(
sg
)
g1
:
Merge
(
sg
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
tg
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
g1
,
g1
:
GetCount
()
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c96142517
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
0
then
return
end
local
r
an
k
=
e
:
GetLabel
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<
=
0
then
return
end
local
rk
=
e
:
GetLabel
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c96142517
.
filter2
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
ran
k
+
1
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c96142517
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
,
r
k
+
1
)
local
sc
=
g
:
GetFirst
()
if
sc
then
local
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
Overlay
(
sc
,
g
)
local
m
g
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
):
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
Duel
.
Overlay
(
sc
,
m
g
)
Duel
.
SpecialSummon
(
sc
,
SUMMON_TYPE_XYZ
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
sc
:
CompleteProcedure
()
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