Commit 7d767672 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12008008.lua

parent fae63e77
...@@ -20,7 +20,7 @@ function c12008008.initial_effect(c) ...@@ -20,7 +20,7 @@ function c12008008.initial_effect(c)
e3:SetCode(EFFECT_UPDATE_ATTACK) e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c12008008.condition) --e3:SetCondition(c12008008.condition)
e3:SetValue(c12008008.atkval) e3:SetValue(c12008008.atkval)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--immune --immune
...@@ -95,9 +95,10 @@ function c12008008.efilter(e,te) ...@@ -95,9 +95,10 @@ function c12008008.efilter(e,te)
return te:GetOwner()~=e:GetOwner() return te:GetOwner()~=e:GetOwner()
end end
function c12008008.atkval(e,c) function c12008008.atkval(e,c)
local tp=c:GetControler() local lps=Duel.GetLP(c:GetControler())
local lp1,lp2=Duel.GetLP(tp),Duel.GetLP(1-tp) local lpo=Duel.GetLP(1-c:GetControler())
return math.abs(lp1-lp2) if lps>=lpo then return 0
else return lpo-lps end
end end
function c12008008.lcheck(g) function c12008008.lcheck(g)
return g:GetClassCount(Card.GetLinkRace)==g:GetCount() return g:GetClassCount(Card.GetLinkRace)==g:GetCount()
......
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