Commit 0505eff0 authored by DailyShana's avatar DailyShana

update 一族の結束

parent 98bf0b88
......@@ -11,29 +11,12 @@ function c86780027.initial_effect(c)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetLabel(0)
e2:SetTarget(c86780027.tg)
e2:SetValue(800)
c:RegisterEffect(e2)
--adjust
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_ADJUST)
e3:SetRange(LOCATION_SZONE)
e3:SetOperation(c86780027.adjustop)
c:RegisterEffect(e3)
e3:SetLabelObject(e2)
end
function c86780027.tg(e,c)
return c:IsRace(e:GetLabel())
end
function c86780027.adjustop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_MONSTER)
local te=e:GetLabelObject()
if g:GetCount()==0 then te:SetLabel(0)
else
local ct=g:GetClassCount(Card.GetOriginalRace)
if ct==1 then te:SetLabel(g:GetFirst():GetOriginalRace())
else te:SetLabel(0) end
end
if g:GetCount()==0 or g:GetClassCount(Card.GetOriginalRace)>1 then return false end
return c:IsRace(g:GetFirst():GetOriginalRace())
end
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