Commit b81a7120 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent ed0e255e
--追想的变奏 --追想的变奏
function c1000815.initial_effect(c) function c1000815.initial_effect(c)
c:EnableCounterPermit(0x3b,LOCATION_SZONE) c:EnableCounterPermit(0x3b)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
...@@ -9,11 +9,10 @@ function c1000815.initial_effect(c) ...@@ -9,11 +9,10 @@ function c1000815.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--counter --counter
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_COUNTER) e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_TO_GRAVE) e2:SetCode(EVENT_TO_GRAVE)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCondition(c1000815.cntcon)
e2:SetOperation(c1000815.addc) e2:SetOperation(c1000815.addc)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--atkup --atkup
...@@ -59,14 +58,13 @@ function c1000815.initial_effect(c) ...@@ -59,14 +58,13 @@ function c1000815.initial_effect(c)
c:RegisterEffect(e7) c:RegisterEffect(e7)
-- --
end end
function c1000815.cnfilter(c,tp) function c1000815.cfilter(c,tp)
return c:GetOwner()==1-tp return c:IsType(TYPE_MONSTER) and c:GetControler()==1-tp
end end
function c1000815.cntcon(e,tp,eg,ep,ev,re,r,rp) function c1000815.addc(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c1000815.cnfilter,1,nil,tp) if eg:IsExists(c1000815.cfilter,1,nil,tp) then
end e:GetHandler():AddCounter(0x3b,1)
function c1000815.addc(e,c) end
e:GetHandler():AddCounter(0x3b,1)
end end
function c1000815.atkval(e,c) function c1000815.atkval(e,c)
return e:GetHandler():GetCounter(0x3b)*100 return e:GetHandler():GetCounter(0x3b)*100
...@@ -74,7 +72,7 @@ end ...@@ -74,7 +72,7 @@ end
function c1000815.cottg(e,tp,eg,ep,ev,re,r,rp,chk) function c1000815.cottg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return e:GetHandler():GetCounter(0x3b)>0 end if chk==0 then return e:GetHandler():GetCounter(0x3b)>0 end
local dam=e:GetHandler():GetCounter(0x3b)*100 local dam=e:GetHandler():GetCounter(0x3b)*200
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(dam) Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,dam) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,dam)
......
...@@ -45,7 +45,7 @@ function c1000816.initial_effect(c) ...@@ -45,7 +45,7 @@ function c1000816.initial_effect(c)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function c1000816.cntcon(e,tp,eg,ep,ev,re,r,rp) function c1000816.cntcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and ev>=1000 and bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 return ep==tp and rp==1-tp and (re or (Duel.GetAttacker() and Duel.GetAttacker():IsControler(1-tp)))
end end
function c1000816.addc(e,c) function c1000816.addc(e,c)
e:GetHandler():AddCounter(0x3b,1) e:GetHandler():AddCounter(0x3b,1)
......
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