Commit 0a63d0a8 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 25a71338
......@@ -26,6 +26,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCondition(cm.sprcon2)
e3:SetOperation(cm.sprop2)
c:RegisterEffect(e3)
--draw
......@@ -91,10 +92,10 @@ function cm.sprop1(e,tp,eg,ep,ev,re,r,rp,c)
end
function cm.sprcon2(e,c)
if c==nil then return true end
return Duel.CheckReleaseGroup(REASON_COST,c:GetControler(),Card.IsCode,1,nil,40009559)
return Duel.CheckReleaseGroup(c:GetControler(),Card.IsCode,1,nil,40009559)
end
function cm.sprop2(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsCode,1,1,nil,40009559)
local g=Duel.SelectReleaseGroup(tp,Card.IsCode,1,1,nil,40009559)
Duel.Release(g,REASON_COST)
end
......
......@@ -58,14 +58,14 @@ function c50224520.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g)
end
end
function c50224520.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER)
function c50224520.cfilter(c,tp)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and not c:IsControler(tp)
end
function c50224520.atkval(e,c)
local g=e:GetHandler():GetColumnGroup():Filter(c50224520.cfilter,nil)
local g=e:GetHandler():GetColumnGroup():Filter(c50224520.cfilter,nil,e:GetHandlerPlayer())
return g:GetSum(Card.GetAttack)
end
function c50224520.defval(e,c)
local g=e:GetHandler():GetColumnGroup():Filter(c50224520.cfilter,nil)
local g=e:GetHandler():GetColumnGroup():Filter(c50224520.cfilter,nil,e:GetHandlerPlayer())
return g:GetSum(Card.GetDefense)
end
\ No newline at end of file
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