Commit 4bd2e3bf authored by Amiya's avatar Amiya

修复

parent a21b7828
Pipeline #42561 passed with stages
in 2 minutes and 26 seconds
...@@ -29,7 +29,7 @@ function s.initial_effect(c) ...@@ -29,7 +29,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.desfilter(c) function s.desfilter(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and not c:IsAttack(0) return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:GetTextAttack()>0
end end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_MZONE,nil)
...@@ -44,13 +44,13 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,13 +44,13 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(g) Duel.HintSelection(g)
if Duel.Destroy(g,REASON_EFFECT)~=0 then if Duel.Destroy(g,REASON_EFFECT)~=0 then
local rc=g:GetFirst() local rc=g:GetFirst()
if rc:GetBaseAttack()>=0 if rc:GetTextAttack()>=0
and c:IsRelateToChain() and c:IsFaceup() then and c:IsRelateToChain() and c:IsFaceup() then
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:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
e1:SetValue(rc:GetBaseAttack()) e1:SetValue(rc:GetTextAttack())
c:RegisterEffect(e1) c:RegisterEffect(e1)
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