name: Snowdust
card_text: You can Special Summon this card (from your hand) by removing 4 Ice Counters from anywhere on the field. Other monsters with Ice Counters cannot attack or change their battle positions.
external_ids: local COUNTER_ID_0 = 0x1015 --Ice
  
lua: local COUNTER_ID_0 = 0x1015 --Ice
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--special summon
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_SPSUMMON_PROC)
  	e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
  	e1:SetRange(LOCATION_HAND)
  	e1:SetCondition(s.spcon)
  	e1:SetOperation(s.spop)
  	c:RegisterEffect(e1)
  	--atk,pos limit
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_CANNOT_ATTACK)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.target)
  	c:RegisterEffect(e2)
  	local e3 = e2:Clone()
  	e3:SetCode(EFFECT_CANNOT_CHANGE_POSITION)
  	c:RegisterEffect(e3)
  end
  function s.spcon(e, c)
  	if c == nil then
  		return true
  	end
  	return Duel.GetLocationCount(c:GetControler(), LOCATION_MZONE) > 0 and Duel.IsCanRemoveCounter(c:GetControler(), 1, 1, COUNTER_ID_0, 4, REASON_COST)
  end
  function s.spop(e, tp, eg, ep, ev, re, r, rp, c)
  	Duel.RemoveCounter(tp, 1, 1, COUNTER_ID_0, 4, REASON_RULE)
  end
  function s.target(e, c)
  	return c ~= e:GetHandler() and c:GetCounter(COUNTER_ID_0) ~= 0
  end
  
  
source_text: Snowdust
  You can Special Summon this card (from your hand) by removing 4 Ice Counters from anywhere on the field. Other monsters with Ice Counters cannot attack or change their battle positions.
target_text: -- Snowdust
  local COUNTER_ID_0 = 0x1015 --Ice
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--special summon
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_SPSUMMON_PROC)
  	e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
  	e1:SetRange(LOCATION_HAND)
  	e1:SetCondition(s.spcon)
  	e1:SetOperation(s.spop)
  	c:RegisterEffect(e1)
  	--atk,pos limit
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_CANNOT_ATTACK)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.target)
  	c:RegisterEffect(e2)
  	local e3 = e2:Clone()
  	e3:SetCode(EFFECT_CANNOT_CHANGE_POSITION)
  	c:RegisterEffect(e3)
  end
  function s.spcon(e, c)
  	if c == nil then
  		return true
  	end
  	return Duel.GetLocationCount(c:GetControler(), LOCATION_MZONE) > 0 and Duel.IsCanRemoveCounter(c:GetControler(), 1, 1, COUNTER_ID_0, 4, REASON_COST)
  end
  function s.spop(e, tp, eg, ep, ev, re, r, rp, c)
  	Duel.RemoveCounter(tp, 1, 1, COUNTER_ID_0, 4, REASON_RULE)
  end
  function s.target(e, c)
  	return c ~= e:GetHandler() and c:GetCounter(COUNTER_ID_0) ~= 0
  end
  
  