Commit 6fc55d32 authored by Tachibana's avatar Tachibana

eme

parent f27a5691
Pipeline #6089 passed with stages
in 24 minutes and 25 seconds
...@@ -62,15 +62,14 @@ function c85402210.bf(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,15 +62,14 @@ function c85402210.bf(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
local tg=g:GetMaxGroup(Card.GetAttack) local tg=g:GetMaxGroup(Card.GetAttack)
if tg:GetCount()>0 then if tg:GetCount()>0 then
local tc=tg:GetFirst() local bg=tg:RandomSelect(tp,1)
if tc:IsFaceup() then local bc=bg:GetFirst()
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_DEFENSE) e1:SetCode(EFFECT_UPDATE_DEFENSE)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetValue(-500) e1:SetValue(-500)
tc:RegisterEffect(e1) bc:RegisterEffect(e1)
end
end end
end end
end end
......
...@@ -77,15 +77,14 @@ function c85402220.bf(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,15 +77,14 @@ function c85402220.bf(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
local tg=g:GetMaxGroup(Card.GetAttack) local tg=g:GetMaxGroup(Card.GetAttack)
if tg:GetCount()>0 then if tg:GetCount()>0 then
local tc=tg:GetFirst() local bg=tg:RandomSelect(tp,1)
if tc:IsFaceup() then local bc=bg:GetFirst()
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_DEFENSE) e1:SetCode(EFFECT_UPDATE_DEFENSE)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetValue(-300) e1:SetValue(-300)
tc:RegisterEffect(e1) bc:RegisterEffect(e1)
end
end end
end end
end 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