You need to sign in or sign up before continuing.
Commit 8799c0c1 authored by salix5's avatar salix5

fix

c31386180 始祖の守護者ティラス
The condtion is fixed.

c67173574 CNo.102 光堕天使ノーブル・デーモン
The target filter and condition fixed, like other similar effect.
parent 9b2355bd
...@@ -53,7 +53,7 @@ end ...@@ -53,7 +53,7 @@ end
function c31386180.desop(e,tp,eg,ep,ev,re,r,rp) function c31386180.desop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetOverlayCount()==0 then return end if e:GetHandler():GetOverlayCount()==0 then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then if tc and tc:IsRelateToEffect(e) and tc:IsControler(1-tp) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
......
...@@ -64,7 +64,7 @@ function c67173574.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,7 +64,7 @@ function c67173574.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c67173574.filter(c) function c67173574.filter(c)
return c:IsFaceup() and (c:GetAttack()>0 or not c:IsDisabled()) return c:IsFaceup() and c:GetAttack()>0
end end
function c67173574.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c67173574.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c67173574.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c67173574.filter(chkc) end
...@@ -75,7 +75,7 @@ end ...@@ -75,7 +75,7 @@ end
function c67173574.operation(e,tp,eg,ep,ev,re,r,rp) function c67173574.operation(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 tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:GetAttack()>0 and tc:IsControler(1-tp) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
......
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