Commit 7bf43dca authored by argon.sun's avatar argon.sun

fix

parent 414bc299
......@@ -12,7 +12,7 @@ function c62271284.initial_effect(c)
end
function c62271284.condition(e,tp,eg,ep,ev,re,r,rp)
local at=Duel.GetAttackTarget()
return tp~=Duel.GetTurnPlayer() and at:IsFaceup() and at:IsType(TYPE_NORMAL)
return tp~=Duel.GetTurnPlayer() and at and at:IsFaceup() and at:IsType(TYPE_NORMAL)
end
function c62271284.filter(c)
return not (c:IsFaceup() and c:IsType(TYPE_NORMAL) and c:IsAttack()) and c:IsDestructable()
......
......@@ -17,7 +17,7 @@ end
function c78564023.condition(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget()
return a:IsControler(tp) and a:IsSetCard(0x33) and a:IsRelateToBattle() and d:IsRelateToBattle()
return a:IsControler(tp) and a:IsSetCard(0x33) and a:IsRelateToBattle() and d and d:IsRelateToBattle()
end
function c78564023.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
......
......@@ -15,7 +15,7 @@ end
function c85682655.target(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetAttacker()
if tc==e:GetHandler() then tc=Duel.GetAttackTarget() end
if chk==0 then return not tc:IsStatus(STATUS_BATTLE_DESTROYED) and tc:IsDestructable() end
if chk==0 then return tc and not tc:IsStatus(STATUS_BATTLE_DESTROYED) and tc:IsDestructable() end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0)
end
function c85682655.operation(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -9,7 +9,7 @@ function c93130021.initial_effect(c)
c:RegisterEffect(e1)
end
function c93130021.filter(c)
return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_SPELL) and c:IsDestrutable()
return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_SPELL) and c:IsDestructable()
end
function c93130021.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c93130021.filter(chkc) 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