name: Fabled
card_text: While you have 2 or less cards in your hand, all face-up "Fabled" monsters you control gain 400 ATK.
external_ids: local SETCARD_ID_0 = 0x35 --Fabled
  
lua: local SETCARD_ID_0 = 0x35 --Fabled
  local s, id, o = GetID()
  function s.initial_effect(c)
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(LOCATION_MZONE, 0)
  	e1:SetCondition(s.con)
  	e1:SetTarget(s.tg)
  	e1:SetValue(400)
  	c:RegisterEffect(e1)
  end
  function s.con(e)
  	return Duel.GetFieldGroupCount(e:GetHandler():GetControler(), LOCATION_HAND, 0) <= 2
  end
  function s.tg(e, c)
  	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0)
  end
  
  
source_text: Fabled
  While you have 2 or less cards in your hand, all face-up "Fabled" monsters you control gain 400 ATK.
target_text: -- Fabled
  local SETCARD_ID_0 = 0x35 --Fabled
  local s, id, o = GetID()
  function s.initial_effect(c)
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(LOCATION_MZONE, 0)
  	e1:SetCondition(s.con)
  	e1:SetTarget(s.tg)
  	e1:SetValue(400)
  	c:RegisterEffect(e1)
  end
  function s.con(e)
  	return Duel.GetFieldGroupCount(e:GetHandler():GetControler(), LOCATION_HAND, 0) <= 2
  end
  function s.tg(e, c)
  	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0)
  end
  
  