Commit e59bbd72 authored by wind2009's avatar wind2009

Merge branch 'patch-1' into 'master'

fix--E-HERO ダーク・ナイト

See merge request mycard/pre-release-database-cdb!97
parents 3e731aa7 557171ab
...@@ -14,11 +14,9 @@ function s.initial_effect(c) ...@@ -14,11 +14,9 @@ function s.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--atk down --atk down
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetCode(EFFECT_MATERIAL_CHECK)
e2:SetRange(LOCATION_MZONE) e2:SetValue(s.matcheck)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetValue(s.atkval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--extra attack --extra attack
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -39,6 +37,17 @@ function s.initial_effect(c) ...@@ -39,6 +37,17 @@ function s.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
s.dark_calling=true s.dark_calling=true
function s.matcheck(e,c)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(0,LOCATION_MZONE)
e1:SetValue(s.atkval)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD)
c:RegisterEffect(e1)
end
function s.atkval(e,c) function s.atkval(e,c)
local ec=e:GetHandler() local ec=e:GetHandler()
local g=ec:GetMaterial() local g=ec:GetMaterial()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment