Commit 214a8fef authored by 八宫一月's avatar 八宫一月 Committed by GitHub

fix 死の罪宝-ルシエラ (#2816)

parent af5c3499
...@@ -55,13 +55,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,13 +55,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.dfilter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(s.dfilter,tp,0,LOCATION_MZONE,nil)
if tc:IsFaceup() and #g>0 then if tc:IsFaceup() and #g>0 then
if chk then Duel.BreakEffect() end if chk then Duel.BreakEffect() end
local atkd=tc:GetAttack()
local dg=Group.CreateGroup() local dg=Group.CreateGroup()
for sc in aux.Next(g) do for sc in aux.Next(g) do
local patk=sc:GetAttack() local patk=sc:GetAttack()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(-tc:GetAttack()) e1:SetValue(-atkd)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
sc:RegisterEffect(e1) sc:RegisterEffect(e1)
if patk~=0 and sc:IsAttack(0) then dg:AddCard(sc) end if patk~=0 and sc:IsAttack(0) then dg:AddCard(sc) 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