Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
487a6a1b
Commit
487a6a1b
authored
Mar 26, 2015
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
eca48f93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
9 deletions
+26
-9
script/c47737087.lua
script/c47737087.lua
+26
-9
No files found.
script/c47737087.lua
View file @
487a6a1b
...
@@ -13,27 +13,44 @@ function c47737087.initial_effect(c)
...
@@ -13,27 +13,44 @@ function c47737087.initial_effect(c)
--
--
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_D
EFENCE
_ATTACK
)
e2
:
SetCode
(
EFFECT_D
IRECT
_ATTACK
)
e2
:
SetCondition
(
c47737087
.
dacon
)
e2
:
SetCondition
(
c47737087
.
dacon
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--atkdown
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e3
:
SetCode
(
EFFECT_DEFENCE_ATTACK
)
e3
:
SetCondition
(
c47737087
.
rdcon
)
e3
:
SetCondition
(
c47737087
.
dacon
)
e3
:
SetOperation
(
c47737087
.
rdop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetCode
(
EFFECT_CANNOT_BE_BATTLE_TARGET
)
e4
:
SetCondition
(
c47737087
.
dacon
)
e4
:
SetValue
(
c47737087
.
val
)
c
:
RegisterEffect
(
e4
)
--atkdown
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_PRE_DAMAGE_CALCULATE
)
e5
:
SetCondition
(
c47737087
.
rdcon
)
e5
:
SetOperation
(
c47737087
.
rdop
)
c
:
RegisterEffect
(
e5
)
end
end
function
c47737087
.
splimit
(
e
,
se
,
sp
,
st
)
function
c47737087
.
splimit
(
e
,
se
,
sp
,
st
)
return
bit
.
band
(
st
,
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
return
bit
.
band
(
st
,
SUMMON_TYPE_FUSION
)
==
SUMMON_TYPE_FUSION
end
end
function
c47737087
.
dacon
(
e
)
function
c47737087
.
dacon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
0
,
LOCATION_MZONE
)
==
0
return
e
:
GetHandler
():
IsDefencePos
()
or
e
:
GetHandler
():
IsHasEffect
(
EFFECT_DIRECT_ATTACK
)
end
function
c47737087
.
val
(
e
,
c
)
return
c
==
e
:
GetHandler
()
end
end
function
c47737087
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47737087
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
==
Duel
.
GetAttacker
()
and
c
:
IsDefencePos
()
and
Duel
.
GetAttackTarget
()
==
nil
return
ep
~=
tp
and
c
==
Duel
.
GetAttacker
()
and
Duel
.
GetAttackTarget
()
==
nil
and
c
:
IsDefencePos
()
and
c
:
GetEffectCount
(
EFFECT_DIRECT_ATTACK
)
<
2
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
end
end
function
c47737087
.
rdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47737087
.
rdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
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