Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Soulgamer
ygopro-222DIY-cards
Commits
22f098a2
Commit
22f098a2
authored
Jun 01, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nmbd
parent
36f0d04e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
92 deletions
+59
-92
expansions/script/c28323000.lua
expansions/script/c28323000.lua
+58
-46
expansions/script/c28323001.lua
expansions/script/c28323001.lua
+1
-46
No files found.
expansions/script/c28323000.lua
View file @
22f098a2
--星希花音
local
m
=
28323000
local
cm
=
_G
[
"c"
..
m
]
xpcall
(
function
()
require
(
"expansions/script/c20100000"
)
end
,
function
()
require
(
"script/c20100000"
)
end
)
if
not
Kanon
then
Kanon
=
Kanon
or
{}
------
function
Kanon
.
Attack
(
c
)
local
ea
=
Effect
.
CreateEffect
(
c
)
ea
:
SetDescription
(
aux
.
Stringid
(
28323001
,
1
))
ea
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
ea
:
SetCode
(
EVENT_BATTLE_START
)
ea
:
SetTarget
(
Kanon
.
ChainAttackTg
)
ea
:
SetRange
(
LOCATION_MZONE
)
ea
:
SetCategory
(
CATEGORY_ATKCHANGE
)
ea
:
SetOperation
(
Kanon
.
ChainAttackOp
)
ea
:
SetCountLimit
(
1
)
c
:
RegisterEffect
(
ea
)
end
function
Kanon
.
ChainAttackTg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
ac
=
Duel
.
GetAttacker
()
if
chk
==
0
then
return
ac
:
IsControler
(
tp
)
and
ac
:
IsRace
(
RACE_WARRIOR
)
and
ac
~=
c
and
c
:
GetAttackAnnouncedCount
()
==
0
and
c
:
IsAttackable
()
end
Duel
.
SetTargetCard
(
c
)
end
function
Kanon
.
ChainAttackOp
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ac
=
Duel
.
GetAttacker
()
local
atk
=
c
:
GetAttack
()
if
atk
<
1
then
return
end
if
ac
:
IsFaceup
()
and
ac
:
IsRelateToBattle
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
Kanon
.
ChainAttackCon
)
e2
:
SetValue
(
atk
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
ac
:
RegisterEffect
(
e2
)
end
end
function
Kanon
.
ChainAttackCon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
(
ph
==
PHASE_DAMAGE
or
ph
==
PHASE_DAMAGE_CAL
)
and
c
:
IsRelateToBattle
()
end
------
end
if
cm
then
------
function
cm
.
initial_effect
(
c
)
--xyz summon
aux
.
AddXyzProcedure
(
c
,
aux
.
FilterBoolFunction
(
Card
.
IsRace
,
RACE_WARRIOR
),
3
,
2
)
c
:
EnableReviveLimit
()
Kanon
.
Attack
(
c
)
--attack up
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -19,17 +75,6 @@ function cm.initial_effect(c)
e1
:
SetCost
(
cm
.
atkcost
)
e1
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e1
)
--Chain Attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_BATTLE_START
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
cm
.
asktg
)
e2
:
SetOperation
(
cm
.
askop
)
c
:
RegisterEffect
(
e2
)
end
function
cm
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
...
...
@@ -46,38 +91,5 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e1
)
end
end
function
cm
.
asktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
ac
=
Duel
.
GetAttacker
()
if
chk
==
0
then
return
ac
:
IsControler
(
tp
)
and
ac
:
IsRace
(
RACE_WARRIOR
)
and
ac
~=
c
and
c
:
GetAttackAnnouncedCount
()
==
0
and
c
:
IsAttackable
()
end
Duel
.
SetTargetCard
(
c
)
end
function
cm
.
askop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ac
=
Duel
.
GetAttacker
()
local
atk
=
c
:
GetAttack
()
if
atk
<
1
then
return
end
if
ac
:
IsFaceup
()
and
ac
:
IsRelateToBattle
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
nef
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
local
e2
=
nef
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cm
.
askcon
)
e2
:
SetValue
(
atk
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
ac
:
RegisterEffect
(
e2
)
end
end
function
cm
.
askcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
(
ph
==
PHASE_DAMAGE
or
ph
==
PHASE_DAMAGE_CAL
)
and
c
:
IsRelateToBattle
()
------
end
expansions/script/c28323001.lua
View file @
22f098a2
...
...
@@ -5,6 +5,7 @@ xpcall(function() require("expansions/script/c20100000") end,function() require(
function
cm
.
initial_effect
(
c
)
c
:
EnableReviveLimit
()
aux
.
AddXyzProcedure
(
c
,
nil
,
6
,
2
,
cm
.
ovfilter
,
aux
.
Stringid
(
m
,
3
),
99
,
cm
.
xyzop
)
Kanon
.
Attack
(
c
)
--attack up
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
...
...
@@ -19,17 +20,6 @@ function cm.initial_effect(c)
e1
:
SetTarget
(
cm
.
atktg
)
e1
:
SetOperation
(
cm
.
atkop
)
c
:
RegisterEffect
(
e1
)
--Chain Attack
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
m
,
1
))
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_BATTLE_START
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
cm
.
asktg
)
e2
:
SetOperation
(
cm
.
askop
)
c
:
RegisterEffect
(
e2
)
--spsummon bgm
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
...
...
@@ -69,41 +59,6 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e1
)
end
end
function
cm
.
asktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
ac
=
Duel
.
GetAttacker
()
if
chk
==
0
then
return
ac
:
IsControler
(
tp
)
and
ac
:
IsRace
(
RACE_WARRIOR
)
and
ac
~=
c
and
c
:
GetAttackAnnouncedCount
()
==
0
and
c
:
IsAttackable
()
end
Duel
.
SetTargetCard
(
c
)
end
function
cm
.
askop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ac
=
Duel
.
GetAttacker
()
local
atk
=
c
:
GetAttack
()
if
atk
<
1
then
return
end
if
ac
:
IsFaceup
()
and
ac
:
IsRelateToBattle
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
nef
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e1
)
local
e2
=
nef
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCondition
(
cm
.
askcon
)
e2
:
SetValue
(
atk
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
ac
:
RegisterEffect
(
e2
)
end
end
function
cm
.
askcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
(
ph
==
PHASE_DAMAGE
or
ph
==
PHASE_DAMAGE_CAL
)
and
c
:
IsRelateToBattle
()
end
function
cm
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_XYZ
)
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