Commit 620fd3fe authored by Grajade's avatar Grajade

Update c50355.lua

parent 54db74e4
......@@ -3,8 +3,7 @@ function c50355.initial_effect(c)
--Electro
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(50355,0))
e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_FREE_CHAIN)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,50355)
e4:SetTarget(c50355.btg)
......@@ -23,8 +22,7 @@ end
function c50355.bop(e,tp,eg,ep,ev,re,r,rp)
local num=1
local genso,count=TET.ELCounter.Get(1-tp)
if genso==50210 and count>1 then num=4-count end
if num<0 then num=0 end
if genso==50210 and count>3 then num=0 end
TET.ELCounter.Add(nil,1-tp,50210,num,e)
end
function c50355.ctg(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -35,8 +33,7 @@ end
function c50355.cop(e,tp,eg,ep,ev,re,r,rp)
local num=1
local genso,count=TET.ELCounter.Get(1-tp)
if genso==50210 and count>2 then num=4-count end
if num<0 then num=0 end
if genso==50210 and count>3 then num=0 end
TET.ELCounter.Add(nil,1-tp,50210,num,e)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
......
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