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
Ai
ygopro-222DIY-cards
Commits
ae97397c
Commit
ae97397c
authored
Jul 29, 2020
by
TanakaKotoha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
43da95d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
expansions/script/c81000000.lua
expansions/script/c81000000.lua
+34
-0
No files found.
expansions/script/c81000000.lua
View file @
ae97397c
...
...
@@ -172,3 +172,37 @@ function Tenka.ArisaB(c)
eb
:
SetOperation
(
Tenka
.
mvop
)
c
:
RegisterEffect
(
eb
)
end
--
function
Tenka
.
Einstein
(
c
)
local
ea
=
Effect
.
CreateEffect
(
c
)
ea
:
SetType
(
EFFECT_TYPE_FIELD
)
ea
:
SetCode
(
EFFECT_REFLECT_BATTLE_DAMAGE
)
ea
:
SetRange
(
LOCATION_MZONE
)
ea
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
ea
:
SetTargetRange
(
0
,
1
)
ea
:
SetCondition
(
Tenka
.
rfcon
)
c
:
RegisterEffect
(
ea
)
if
not
Tenka
.
global_check
then
Tenka
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DAMAGE
)
ge1
:
SetOperation
(
Tenka
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
Tenka
.
rfcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
end
function
Tenka
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
then
Duel
.
RegisterFlagEffect
(
ep
,
81024000
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
Tenka
.
EinMainCon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFlagEffect
(
tp
,
81024000
)
~=
0
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
end
function
Tenka
.
EinBattleCon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
ep
==
tp
and
c
:
IsRelateToBattle
()
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