name: Ally
card_text: If this card battles a LIGHT monster, it gains 700 ATK during the Damage Step only.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--atkup
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCondition(s.condtion)
  	e1:SetValue(700)
  	c:RegisterEffect(e1)
  end
  function s.condtion(e)
  	local ph = Duel.GetCurrentPhase()
  	if not (ph == PHASE_DAMAGE or ph == PHASE_DAMAGE_CAL) then
  		return false
  	end
  	local a = Duel.GetAttacker()
  	local d = Duel.GetAttackTarget()
  	return (a == e:GetHandler() and d and d:IsFaceup() and d:IsAttribute(ATTRIBUTE_LIGHT)) or (d == e:GetHandler() and a:IsAttribute(ATTRIBUTE_LIGHT))
  end
  
  
source_text: Ally
  If this card battles a LIGHT monster, it gains 700 ATK during the Damage Step only.
target_text: -- Ally
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--atkup
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE)
  	e1:SetCode(EFFECT_UPDATE_ATTACK)
  	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetCondition(s.condtion)
  	e1:SetValue(700)
  	c:RegisterEffect(e1)
  end
  function s.condtion(e)
  	local ph = Duel.GetCurrentPhase()
  	if not (ph == PHASE_DAMAGE or ph == PHASE_DAMAGE_CAL) then
  		return false
  	end
  	local a = Duel.GetAttacker()
  	local d = Duel.GetAttackTarget()
  	return (a == e:GetHandler() and d and d:IsFaceup() and d:IsAttribute(ATTRIBUTE_LIGHT)) or (d == e:GetHandler() and a:IsAttribute(ATTRIBUTE_LIGHT))
  end
  
  