name: Perfect
card_text: This card gains 500 ATK for each other Machine-Type monster on the field.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--atkup
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetValue(s.val)
  	c:RegisterEffect(e1)
  end
  function s.val(e, c)
  	return Duel.GetMatchingGroupCount(s.filter, c:GetControler(), LOCATION_MZONE, LOCATION_MZONE, e:GetHandler()) * 500
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsRace(RACE_MACHINE)
  end
  
  
source_text: Perfect
  This card gains 500 ATK for each other Machine-Type monster on the field.
target_text: -- Perfect
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--atkup
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetValue(s.val)
  	c:RegisterEffect(e1)
  end
  function s.val(e, c)
  	return Duel.GetMatchingGroupCount(s.filter, c:GetControler(), LOCATION_MZONE, LOCATION_MZONE, e:GetHandler()) * 500
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsRace(RACE_MACHINE)
  end
  
  