Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
Amiya
pre-release-database-cdb
Commits
9f7096a3
Commit
9f7096a3
authored
Nov 30, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix PHNI-JP045 script
parent
c8cc5600
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
script/c101203045.lua
script/c101203045.lua
+16
-7
No files found.
script/c101203045.lua
View file @
9f7096a3
--急袭猛禽-崛起叛逆猎鹰
--lua by zengsxing
--RR-ライジング・リベリオン・ファルコン
local
s
,
id
,
o
=
GetID
()
function
s
.
initial_effect
(
c
)
--Xyz Summon
...
...
@@ -41,18 +40,26 @@ end
function
s
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsSummonType
(
SUMMON_TYPE_XYZ
)
end
function
s
.
damval1
(
c
)
if
c
:
GetLocation
()
~=
LOCATION_MZONE
then
return
end
return
math.max
(
0
,
c
:
GetTextAttack
())
end
function
s
.
damval2
(
c
)
if
c
:
GetPreviousLocation
()
~=
LOCATION_MZONE
then
return
end
return
math.max
(
0
,
c
:
GetTextAttack
())
end
function
s
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
chk
==
0
then
return
#
g
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
local
atk
=
g
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_MONSTER
):
GetSum
(
Card
.
GetBaseAttack
)
local
atk
=
g
:
GetSum
(
s
.
damval1
)
if
atk
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
0
)
end
end
function
s
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
0
,
LOCATION_ONFIELD
,
nil
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
>
0
and
e
:
GetHandler
():
GetOverlayGroup
():
Filter
(
Card
.
IsType
,
nil
,
TYPE_XYZ
):
GetClassCount
(
Card
.
GetCode
)
>=
3
then
local
dg
=
Duel
.
GetOperatedGroup
()
:
Filter
(
Card
.
IsType
,
nil
,
TYPE_MONSTER
)
local
atk
=
dg
:
GetSum
(
Card
.
GetBaseAttack
)
local
dg
=
Duel
.
GetOperatedGroup
()
local
atk
=
dg
:
GetSum
(
s
.
damval2
)
if
atk
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
...
...
@@ -63,8 +70,10 @@ function s.filter(c)
return
c
:
IsSetCard
(
0xba
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsType
(
TYPE_XYZ
)
and
not
c
:
IsForbidden
()
end
function
s
.
copycost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
CheckRemoveOverlayCard
(
tp
,
3
,
REASON_COST
)
end
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
3
,
3
,
REASON_COST
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
GetFlagEffect
(
id
)
==
0
and
c
:
CheckRemoveOverlayCard
(
tp
,
3
,
REASON_COST
)
end
c
:
RemoveOverlayCard
(
tp
,
3
,
3
,
REASON_COST
)
c
:
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
s
.
copytg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
s
.
filter
(
chkc
)
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