name: Flamvell
card_text: Gains 400 ATK while you control an "Ally of Justice" monster.
external_ids: local SETCARD_ID_0 = 0x1 --Ally
  
lua: local SETCARD_ID_0 = 0x1 --Ally
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--atk
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetCondition(s.atkcon)
  	e1:SetValue(400)
  	c:RegisterEffect(e1)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0)
  end
  function s.atkcon(e)
  	return Duel.IsExistingMatchingCard(s.filter, e:GetHandler():GetControler(), LOCATION_MZONE, 0, 1, nil)
  end
  
  
source_text: Flamvell
  Gains 400 ATK while you control an "Ally of Justice" monster.
target_text: -- Flamvell
  local SETCARD_ID_0 = 0x1 --Ally
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--atk
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetCondition(s.atkcon)
  	e1:SetValue(400)
  	c:RegisterEffect(e1)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0)
  end
  function s.atkcon(e)
  	return Duel.IsExistingMatchingCard(s.filter, e:GetHandler():GetControler(), LOCATION_MZONE, 0, 1, nil)
  end
  
  