Commit e7333fc9 authored by wind2009's avatar wind2009

Fix

parent 5fdfdaa1
Pipeline #41388 passed with stages
in 1 minute and 45 seconds
No preview for this file type
......@@ -46,15 +46,12 @@ function s.lvcalfilter(c)
local se=c:GetSpecialSummonInfo(SUMMON_INFO_REASON_EFFECT)
return se and se:GetHandler()==c
end
function s.gcheck(c,cg)
return cg:IsContains(c)
end
function s.deop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if sg:GetCount()>0 then
local cg=sg:Filter(s.lvcalfilter,nil)
Duel.Destroy(sg,REASON_EFFECT)
local ct=Duel.GetOperatedGroup():Filter(s.gcheck,nil,cg):GetSum(Card.GetOriginalLevel)
local ct=(Duel.GetOperatedGroup()&cg):GetSum(Card.GetOriginalLevel)
Duel.Damage(1-tp,ct*200,REASON_EFFECT)
end
end
......
......@@ -33,15 +33,12 @@ end
function s.damcon(e)
return e:GetHandler():GetOverlayCount()>0
end
function s.atkcon(e,tp,eg,ep,ev,re,r,rp)
return aux.bpcon(e,tp,eg,ep,ev,re,r,rp)
end
function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
local ct=Duel.GetOperatedGroup():GetFirst()
if ct:IsType(TYPE_MONSTER) then
e:SetLabel(ct:GetRace())
e:SetLabel(ct:GetOriginalRace())
else
e:SetLabel(0)
end
......@@ -61,8 +58,8 @@ end
function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToChain()
and e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK)==0
and e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK_MONSTER)==0 then
and c:GetEffectCount(EFFECT_EXTRA_ATTACK)==0
and c:GetEffectCount(EFFECT_EXTRA_ATTACK_MONSTER)==0 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
......
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