name: Penumbral
card_text: If this card battles a LIGHT monster, this card gains 1000 ATK during the Damage Step only.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	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.condtion)
  	e1:SetValue(1000)
  	c:RegisterEffect(e1)
  end
  function s.condtion(e)
  	local c = e:GetHandler()
  	local ph = Duel.GetCurrentPhase()
  	local bc = c:GetBattleTarget()
  	return (ph == PHASE_DAMAGE or ph == PHASE_DAMAGE_CAL) and c:IsRelateToBattle() and bc and bc:IsFaceup() and bc:IsAttribute(ATTRIBUTE_LIGHT)
  end
  
  
source_text: Penumbral
  If this card battles a LIGHT monster, this card gains 1000 ATK during the Damage Step only.
target_text: -- Penumbral
  local s, id, o = GetID()
  function s.initial_effect(c)
  	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.condtion)
  	e1:SetValue(1000)
  	c:RegisterEffect(e1)
  end
  function s.condtion(e)
  	local c = e:GetHandler()
  	local ph = Duel.GetCurrentPhase()
  	local bc = c:GetBattleTarget()
  	return (ph == PHASE_DAMAGE or ph == PHASE_DAMAGE_CAL) and c:IsRelateToBattle() and bc and bc:IsFaceup() and bc:IsAttribute(ATTRIBUTE_LIGHT)
  end
  
  