Commit faa82f0e authored by fallenstardust's avatar fallenstardust

fix ジャンク・ドラゴンセント by fmole

parent ccdc80f8
--废品插座龙 --ジャンク・ドラゴンセント
--Script by fmole
local s,id=GetID() local s,id=GetID()
function c100200238.initial_effect(c) function c100200238.initial_effect(c)
--special summon --special summon
...@@ -43,14 +44,15 @@ function s.atkfilter(c) ...@@ -43,14 +44,15 @@ function s.atkfilter(c)
return c:IsFaceup() and c:IsRelateToBattle() return c:IsFaceup() and c:IsRelateToBattle()
end end
function s.atkop(e,tp,eg,ep,ev,re,r,rp) function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local ac=e:GetLabelObject() local ac=Duel.GetAttacker()
if ac:IsRelateToBattle() and ac:IsFaceup() and ac:IsControler(tp) then local g=Group.FromCards(ac):Filter(s.atkfilter,nil)
local e1=Effect.CreateEffect(e:GetHandler()) local gc=g:GetFirst()
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(800) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetValue(800)
ac:RegisterEffect(e1) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end gc:RegisterEffect(e1)
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