name: Cryomancer
card_text: While you control another "Ice Barrier" monster, Level 4 or higher monsters cannot declare an attack.
external_ids: local SETCARD_ID_0 = 0x2f --Ice
  
lua: local SETCARD_ID_0 = 0x2f --Ice
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--cannot attack
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.tg)
  	e2:SetCondition(s.con)
  	c:RegisterEffect(e2)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0)
  end
  function s.con(e)
  	return Duel.IsExistingMatchingCard(s.filter, e:GetHandler():GetControler(), LOCATION_MZONE, 0, 1, e:GetHandler())
  end
  function s.tg(e, c)
  	return c:IsLevelAbove(4)
  end
  
  
source_text: Cryomancer
  While you control another "Ice Barrier" monster, Level 4 or higher monsters cannot declare an attack.
target_text: -- Cryomancer
  local SETCARD_ID_0 = 0x2f --Ice
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--cannot attack
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.tg)
  	e2:SetCondition(s.con)
  	c:RegisterEffect(e2)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0)
  end
  function s.con(e)
  	return Duel.IsExistingMatchingCard(s.filter, e:GetHandler():GetControler(), LOCATION_MZONE, 0, 1, e:GetHandler())
  end
  function s.tg(e, c)
  	return c:IsLevelAbove(4)
  end
  
  