name: Fusion
card_text: If this card battles a Fusion Monster, that Fusion Monster's ATK becomes 0 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_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(0, LOCATION_MZONE)
  	e1:SetCode(EFFECT_SET_ATTACK_FINAL)
  	e1:SetCondition(s.condtion)
  	e1:SetTarget(s.target)
  	e1:SetValue(0)
  	c:RegisterEffect(e1)
  end
  function s.condtion(e)
  	local ph = Duel.GetCurrentPhase()
  	return (ph == PHASE_DAMAGE or ph == PHASE_DAMAGE_CAL) and Duel.GetAttackTarget() ~= nil and (Duel.GetAttacker() == e:GetHandler() or Duel.GetAttackTarget() == e:GetHandler())
  end
  function s.target(e, c)
  	return c == e:GetHandler():GetBattleTarget() and c:IsType(TYPE_FUSION)
  end
  
  
source_text: Fusion
  If this card battles a Fusion Monster, that Fusion Monster's ATK becomes 0 during the Damage Step only.
target_text: -- Fusion
  local s, id, o = GetID()
  function s.initial_effect(c)
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(0, LOCATION_MZONE)
  	e1:SetCode(EFFECT_SET_ATTACK_FINAL)
  	e1:SetCondition(s.condtion)
  	e1:SetTarget(s.target)
  	e1:SetValue(0)
  	c:RegisterEffect(e1)
  end
  function s.condtion(e)
  	local ph = Duel.GetCurrentPhase()
  	return (ph == PHASE_DAMAGE or ph == PHASE_DAMAGE_CAL) and Duel.GetAttackTarget() ~= nil and (Duel.GetAttacker() == e:GetHandler() or Duel.GetAttackTarget() == e:GetHandler())
  end
  function s.target(e, c)
  	return c == e:GetHandler():GetBattleTarget() and c:IsType(TYPE_FUSION)
  end
  
  