Commit c13764e8 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix (#2055)

parent b6593349
......@@ -11,9 +11,10 @@ function c58775978.initial_effect(c)
--cannot attack
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e2:SetCode(EFFECT_CANNOT_ATTACK)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetCondition(c58775978.atkcon)
c:RegisterEffect(e2)
--remain field
local e3=Effect.CreateEffect(c)
......@@ -53,3 +54,6 @@ function c58775978.desop(e,tp,eg,ep,ev,re,r,rp)
c:ResetFlagEffect(1082946)
end
end
function c58775978.atkcon(e)
return e:GetHandler():GetType()==TYPE_SPELL
end
......@@ -14,6 +14,7 @@ function c72302403.initial_effect(c)
e2:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetCondition(c72302403.atkcon)
c:RegisterEffect(e2)
--remain field
local e3=Effect.CreateEffect(c)
......@@ -60,3 +61,6 @@ function c72302403.desop(e,tp,eg,ep,ev,re,r,rp)
c:ResetFlagEffect(1082946)
end
end
function c72302403.atkcon(e)
return e:GetHandler():GetType()==TYPE_SPELL
end
......@@ -57,7 +57,8 @@ function c84808313.desop(e,tp,eg,ep,ev,re,r,rp)
end
function c84808313.ntcon(e,c,minc)
if c==nil then return true end
return minc==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
return e:GetHandler():GetType()==TYPE_SPELL
and minc==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c84808313.nttg(e,c)
return c:IsLevelAbove(5) and c:IsRace(RACE_DINOSAUR)
......
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