Commit 623fa50d authored by mercury233's avatar mercury233

fix 星読みの魔術師 and 時読みの魔術師

parent 2365dcab
...@@ -49,6 +49,7 @@ end ...@@ -49,6 +49,7 @@ end
function c20409757.actcon(e) function c20409757.actcon(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
if not tc then return false end
if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end
return tc and tc:IsControler(tp) and tc:IsType(TYPE_PENDULUM) return tc and tc:IsControler(tp) and tc:IsType(TYPE_PENDULUM)
end end
......
...@@ -42,7 +42,7 @@ function c94415058.actcon(e) ...@@ -42,7 +42,7 @@ function c94415058.actcon(e)
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
if not tc then return false end if not tc then return false end
if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end
return tc:IsControler(tp) and tc:IsType(TYPE_PENDULUM) return tc and tc:IsControler(tp) and tc:IsType(TYPE_PENDULUM)
end end
function c94415058.aclimit(e,re,tp) function c94415058.aclimit(e,re,tp)
return re:IsActiveType(TYPE_SPELL) and re:IsHasType(EFFECT_TYPE_ACTIVATE) return re:IsActiveType(TYPE_SPELL) and re:IsHasType(EFFECT_TYPE_ACTIVATE)
......
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