Commit f1aa57a9 authored by DailyShana's avatar DailyShana

fix attack limit of サイバース・ウィザード

it's clearly not a must attack effect
parent 5237be37
......@@ -29,12 +29,15 @@ function c36033786.posop(e,tp,eg,ep,ev,re,r,rp)
local fid=tc:GetRealFieldID()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_MUST_ATTACK_MONSTER)
e1:SetCode(EFFECT_CANNOT_DIRECT_ATTACK)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetValue(c36033786.atklimit)
e1:SetLabel(fid)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
e2:SetValue(c36033786.atklimit)
e2:SetLabel(fid)
Duel.RegisterEffect(e2,tp)
--pierce
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
......@@ -46,5 +49,5 @@ function c36033786.posop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c36033786.atklimit(e,c)
return c:GetRealFieldID()==e:GetLabel()
return c:GetRealFieldID()~=e:GetLabel()
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