Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Huangnan
no81cards
Commits
dd3a2c73
Commit
dd3a2c73
authored
May 28, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Anifriends Cerberus from Glitchy
parent
5a39bcac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
36 deletions
+83
-36
expansions/no81.cdb
expansions/no81.cdb
+0
-0
expansions/script/c33700937.lua
expansions/script/c33700937.lua
+83
-36
No files found.
expansions/no81.cdb
View file @
dd3a2c73
No preview for this file type
expansions/script/c33700937.lua
View file @
dd3a2c73
--动物朋友 地狱三头犬
--动物朋友 地狱三头犬
if
not
pcall
(
function
()
require
(
"expansions/script/c10199990"
)
end
)
then
require
(
"script/c10199990"
)
end
--Anifriends Cerberus
local
m
=
33700937
--Animamici Cerbero
local
cm
=
_G
[
"c"
..
m
]
--Original Script by: scl
function
cm
.
initial_effect
(
c
)
--Rescripted by: XGlitchy30
local
s
,
id
=
GetID
()
function
s
.
initial_effect
(
c
)
--xyz summon
--xyz summon
c
:
EnableReviveLimit
()
c
:
EnableReviveLimit
()
aux
.
AddXyzProcedureLevelFree
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsLevel
,
5
),
cm
.
xyzcheck
,
3
,
3
,
cm
.
ovfilter
,
aux
.
Stringid
(
m
,
2
))
aux
.
AddXyzProcedureLevelFree
(
c
,
s
.
matfilter
,
s
.
xyzcheck
,
3
,
3
,
s
.
ovfilter
,
aux
.
Stringid
(
id
,
2
),
s
.
xyzop
)
local
f
=
function
(
e
)
--[[Once per turn: You can detach all materials from this card; this card gains 1 additional attack during each Battle Phase this turn for each material detached.]]
return
Duel
.
IsAbleToEnterBP
()
local
e1
=
Effect
.
CreateEffect
(
c
)
end
e1
:
Desc
(
0
)
local
e1
=
rsef
.
I
(
c
,{
m
,
0
},
1
,
nil
,
nil
,
LOCATION_MZONE
,
f
,
rscost
.
rmxyz
(
true
),
nil
,
cm
.
op
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
local
e2
=
rsef
.
STO
(
c
,
EVENT_BATTLE_DESTROYING
,{
m
,
1
},
nil
,
nil
,
"de"
,
cm
.
xyzcon
,
nil
,
cm
.
xyztg
,
cm
.
xyzop
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCost
(
aux
.
LabelCost
)
e1
:
SetTarget
(
s
.
atktg
)
e1
:
SetOperation
(
s
.
atkop
)
c
:
RegisterEffect
(
e1
)
--[[If this card destroys a monster(s) by battle while you have no cards with the same name in your GY: You can attach it to this card as material.]]
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
Desc
(
1
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
|
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e2
:
SetCondition
(
s
.
atcon
)
e2
:
SetTarget
(
s
.
attg
)
e2
:
SetOperation
(
s
.
atop
)
c
:
RegisterEffect
(
e2
)
end
function
s
.
matfilter
(
c
,
xyzc
)
return
c
:
IsXyzLevel
(
xyzc
,
5
)
end
function
s
.
xyzcheck
(
g
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
==
3
end
end
function
cm
.
xyzcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsMonster
(
TYPE_XYZ
)
and
c
:
IsSetCard
(
0x442
)
and
not
c
:
IsCode
(
id
)
end
function
s
.
xyzop
(
e
,
tp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
id
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
id
,
RESET_PHASE
|
PHASE_END
,
EFFECT_FLAG_OATH
,
1
)
end
function
s
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetBattleTarge
t
()
local
ct
=
c
:
GetOverlayCoun
t
()
if
not
c
:
IsRelateToBattle
()
or
c
:
IsFacedown
()
then
return
false
end
if
chk
==
0
then
e
:
SetLabelObject
(
tc
)
if
e
:
GetLabel
()
~=
1
then
return
false
end
return
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsReason
(
REASON_BATTLE
)
e
:
SetLabel
(
0
)
end
return
Duel
.
IsAbleToEnterBP
()
and
c
:
IsCapableOfAttacking
()
and
c
:
CheckRemoveOverlayCard
(
tp
,
ct
,
REASON_COST
)
function
cm
.
xyztg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsType
(
TYPE_XYZ
)
end
e
:
SetLabel
(
0
)
local
tc
=
e
:
GetLabelObject
()
if
c
:
RemoveOverlayCard
(
tp
,
ct
,
ct
,
REASON_COST
)
then
Duel
.
SetTargetCard
(
tc
)
Duel
.
SetTargetParam
(
#
Duel
.
GetOperatedGroup
()
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
tc
,
1
,
0
,
0
)
end
end
end
function
cm
.
xyz
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
atk
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
ct
=
Duel
.
GetTargetParam
()
if
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
then
if
ct
and
ct
>
0
and
c
:
IsRelateToChain
()
then
Duel
.
Overlay
(
c
,
tc
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
STRING_GAINED_ADDITIONAL_ATTACK
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetValue
(
ct
)
e1
:
SetReset
(
RESET_EVENT
|
RESETS_STANDARD
|
RESET_PHASE
|
PHASE_END
)
c
:
RegisterEffect
(
e1
)
end
end
end
end
function
cm
.
ovfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x442
)
and
not
c
:
IsCode
(
m
)
function
s
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetGY
(
tp
)
return
aux
.
bdocon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
g
:
GetClassCount
(
Card
.
GetCode
)
==#
g
end
end
function
cm
.
xyzcheck
(
g
)
function
s
.
attg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
==
3
local
c
=
e
:
GetHandler
()
local
bc
=
c
:
GetBattleTarget
()
if
chk
==
0
then
return
c
:
IsType
(
TYPE_XYZ
)
and
bc
:
IsCanOverlay
(
tp
)
and
(
bc
:
IsLocation
(
LOCATION_GRAVE
)
or
(
bc
:
IsFaceup
()
and
bc
:
IsLocation
(
LOCATION_EXTRA
|
LOCATION_REMOVED
)))
end
Duel
.
SetTargetCard
(
bc
)
if
bc
:
IsLocation
(
LOCATION_GRAVE
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_LEAVE_GRAVE
,
bc
,
1
,
0
,
0
)
end
end
end
function
cm
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
at
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
aux
.
ExceptThisCard
(
e
)
local
c
=
e
:
GetHandler
(
)
if
c
then
local
tc
=
Duel
.
GetFirstTarget
()
local
e1
=
rsef
.
SV
(
c
,
EFFECT_EXTRA_ATTACK
,
e
:
GetLabel
())
if
c
:
IsRelateToChain
()
and
c
:
IsType
(
TYPE_XYZ
)
and
tc
:
IsRelateToChain
()
then
e1
:
SetReset
(
rsreset
.
est_pend
)
Duel
.
Attach
(
tc
,
c
)
end
end
end
end
\ No newline at end of file
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