Commit 21b66e1f authored by nekrozar's avatar nekrozar Committed by DailyShana

fix Michizure (#801)

parent f1868c08
...@@ -11,18 +11,11 @@ function c37580756.initial_effect(c) ...@@ -11,18 +11,11 @@ function c37580756.initial_effect(c)
e1:SetOperation(c37580756.activate) e1:SetOperation(c37580756.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c37580756.filter1(c,tp) function c37580756.filter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) return c:IsType(TYPE_MONSTER) and c:IsControler(tp) and c:IsPreviousLocation(LOCATION_MZONE)
end end
function c37580756.filter2(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsControler(tp) and c:IsReason(REASON_BATTLE) and c:IsPreviousLocation(LOCATION_MZONE)
end
function c37580756.condition(e,tp,eg,ep,ev,re,r,rp) function c37580756.condition(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetCurrentPhase()~=PHASE_DAMAGE then return eg:IsExists(c37580756.filter,1,nil,tp)
return eg:IsExists(c37580756.filter1,1,nil,tp)
else
return eg:IsExists(c37580756.filter2,1,nil,tp)
end
end end
function c37580756.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c37580756.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) end if chkc then return chkc:IsLocation(LOCATION_MZONE) 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