name: Arcana
card_text: If this card is Summoned: Toss a coin.
  ● Heads: All "Arcana Force" monsters you control gain 500 ATK.
  ● Tails: All "Arcana Force" monsters you control lose 500 ATK.
external_ids: local SETCARD_ID_0 = 0x5 --Arcana
  
lua: local SETCARD_ID_0 = 0x5 --Arcana
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--coin
  	aux.EnableArcanaCoin(c, EVENT_SUMMON_SUCCESS, EVENT_FLIP_SUMMON_SUCCESS, EVENT_SPSUMMON_SUCCESS)
  	--coin effect
  	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(aux.ArcanaCondition)
  	e1:SetTarget(s.atktg)
  	e1:SetValue(s.atkval)
  	c:RegisterEffect(e1)
  end
  function s.atktg(e, c)
  	return c:IsSetCard(SETCARD_ID_0)
  end
  function s.atkval(e, c)
  	if e:GetHandler():GetFlagEffectLabel(FLAG_ID_ARCANA_COIN) == 1 then
  		return 500
  	else
  		return -500
  	end
  end
  
  
source_text: Arcana
  If this card is Summoned: Toss a coin.
  ● Heads: All "Arcana Force" monsters you control gain 500 ATK.
  ● Tails: All "Arcana Force" monsters you control lose 500 ATK.
target_text: -- Arcana
  local SETCARD_ID_0 = 0x5 --Arcana
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--coin
  	aux.EnableArcanaCoin(c, EVENT_SUMMON_SUCCESS, EVENT_FLIP_SUMMON_SUCCESS, EVENT_SPSUMMON_SUCCESS)
  	--coin effect
  	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(aux.ArcanaCondition)
  	e1:SetTarget(s.atktg)
  	e1:SetValue(s.atkval)
  	c:RegisterEffect(e1)
  end
  function s.atktg(e, c)
  	return c:IsSetCard(SETCARD_ID_0)
  end
  function s.atkval(e, c)
  	if e:GetHandler():GetFlagEffectLabel(FLAG_ID_ARCANA_COIN) == 1 then
  		return 500
  	else
  		return -500
  	end
  end
  
  