name: Parasitic
card_text: The ATK and DEF of this card are each equal to the number of tokens on the field x 500.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--atk/def
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_SET_ATTACK)
  	e1:SetValue(s.val)
  	c:RegisterEffect(e1)
  	local e2 = e1:Clone()
  	e2:SetCode(EFFECT_SET_DEFENSE)
  	c:RegisterEffect(e2)
  end
  function s.val(e, c)
  	return Duel.GetMatchingGroupCount(Card.IsType, c:GetControler(), LOCATION_MZONE, LOCATION_MZONE, nil, TYPE_TOKEN) * 500
  end
  
  
source_text: Parasitic
  The ATK and DEF of this card are each equal to the number of tokens on the field x 500.
target_text: -- Parasitic
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--atk/def
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_SET_ATTACK)
  	e1:SetValue(s.val)
  	c:RegisterEffect(e1)
  	local e2 = e1:Clone()
  	e2:SetCode(EFFECT_SET_DEFENSE)
  	c:RegisterEffect(e2)
  end
  function s.val(e, c)
  	return Duel.GetMatchingGroupCount(Card.IsType, c:GetControler(), LOCATION_MZONE, LOCATION_MZONE, nil, TYPE_TOKEN) * 500
  end
  
  