Commit e59bbd72 authored by wind2009's avatar wind2009

Merge branch 'patch-1' into 'master'

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

See merge request !97
parents 3e731aa7 557171ab
Pipeline #29157 passed with stages
in 1 minute
......@@ -14,11 +14,9 @@ function s.initial_effect(c)
c:RegisterEffect(e1)
--atk down
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetValue(s.atkval)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_MATERIAL_CHECK)
e2:SetValue(s.matcheck)
c:RegisterEffect(e2)
--extra attack
local e3=Effect.CreateEffect(c)
......@@ -39,6 +37,17 @@ function s.initial_effect(c)
c:RegisterEffect(e4)
end
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)
local ec=e:GetHandler()
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