Commit 9a39365b authored by DailyShana's avatar DailyShana

fix

parent 9fac54ae
...@@ -51,6 +51,7 @@ end ...@@ -51,6 +51,7 @@ end
function c58074177.atkcon(e,tp,eg,ep,ev,re,r,rp) function c58074177.atkcon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local d=a:GetBattleTarget() local d=a:GetBattleTarget()
if a:IsControler(1-tp) then a,d=d,a end
return a:IsFaceup() and a:IsRelateToBattle() return a:IsFaceup() and a:IsRelateToBattle()
and d and d:IsFaceup() and d:IsRelateToBattle() and d and d:IsFaceup() and d:IsRelateToBattle()
and d:GetAttack()>0 and a:GetControler()~=d:GetControler() and d:GetAttack()>0 and a:GetControler()~=d:GetControler()
...@@ -58,6 +59,7 @@ end ...@@ -58,6 +59,7 @@ end
function c58074177.atkop(e,tp,ep,ev,re,r,rp) function c58074177.atkop(e,tp,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local d=a:GetBattleTarget() local d=a:GetBattleTarget()
if a:IsControler(1-tp) then a,d=d,a end
if e:GetHandler():IsRelateToEffect(e) if e:GetHandler():IsRelateToEffect(e)
and a:IsFaceup() and a:IsRelateToBattle() and a:IsFaceup() and a:IsRelateToBattle()
and d:IsFaceup() and d:IsRelateToBattle() then and d:IsFaceup() and d:IsRelateToBattle() then
...@@ -104,7 +106,8 @@ function c58074177.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,7 +106,8 @@ function c58074177.disop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c58074177.descon(e,tp,eg,ep,ev,re,r,rp) function c58074177.descon(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)
end end
function c58074177.desfilter(c) function c58074177.desfilter(c)
return c:IsFaceup() and c:IsLevelAbove(5) return c:IsFaceup() and c:IsLevelAbove(5)
......
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