Commit 3ffea809 authored by fallenstardust's avatar fallenstardust

fix LEDE-JP011\012 scripts

parent 0e75dac9
...@@ -33,7 +33,7 @@ function s.mvcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function s.mvcon(e,tp,eg,ep,ev,re,r,rp)
else else
ft2=ft2+1 ft2=ft2+1
end end
if ac:GetOwner()==tp then if ac and ac:GetOwner()==tp then
ft1=ft1+1 ft1=ft1+1
else else
ft2=ft2+1 ft2=ft2+1
...@@ -56,7 +56,7 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp)
else else
ft2=ft2+1 ft2=ft2+1
end end
if ac:GetOwner()==tp then if ac and ac:GetOwner()==tp then
ft1=ft1+1 ft1=ft1+1
else else
ft2=ft2+1 ft2=ft2+1
......
...@@ -21,6 +21,7 @@ function s.initial_effect(c) ...@@ -21,6 +21,7 @@ function s.initial_effect(c)
e3:SetCategory(CATEGORY_DESTROY) e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_SSET) e3:SetCode(EVENT_SSET)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,id+o) e3:SetCountLimit(1,id+o)
e3:SetTarget(s.destg) e3:SetTarget(s.destg)
......
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