Commit 1d92e3ac authored by mercury233's avatar mercury233 Committed by GitHub

fix 鬼動武者

parent 299ecf07
......@@ -11,7 +11,7 @@ function c40509732.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(0,1)
e1:SetValue(1)
e1:SetCondition(c40509732.con)
e1:SetCondition(c40509732.actcon)
c:RegisterEffect(e1)
--disable
local e2=Effect.CreateEffect(c)
......@@ -45,6 +45,10 @@ function c40509732.initial_effect(c)
e4:SetOperation(c40509732.spop)
c:RegisterEffect(e4)
end
function c40509732.actcon(e)
local c=e:GetHandler()
return (Duel.GetAttacker()==c and c:GetBattleTarget()) or Duel.GetAttackTarget()==c
end
function c40509732.disop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetBattleTarget()
if not tc then return 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