Commit 52c1b146 authored by wind2009's avatar wind2009 Committed by GitHub

Fix 精霊コロゾ (#2870)

parent 3a80c271
...@@ -39,13 +39,13 @@ end ...@@ -39,13 +39,13 @@ end
function s.natg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.natg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
if chkc then return chkc==a end if chkc then return chkc==a end
if chk==0 then return a~=nil and a:IsCanBeEffectTarget(e) and a:GetAttack()>0 end if chk==0 then return a~=nil and a:IsCanBeEffectTarget(e) end
Duel.SetTargetCard(a) Duel.SetTargetCard(a)
end end
function s.naop(e,tp,eg,ep,ev,re,r,rp) function s.naop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if Duel.NegateAttack() and tc:IsRelateToEffect(e) and c:IsFaceup() and c:IsRelateToEffect(e) then if Duel.NegateAttack() and tc:IsRelateToEffect(e) and tc:GetAttack()>0 and c:IsFaceup() and c:IsRelateToEffect(e) then
local preatk=c:GetAttack() local preatk=c:GetAttack()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
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