name: Muscle
card_text: If a player would take damage from a battle involving this card, they gain that much LP, instead.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--damage conversion
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_REVERSE_DAMAGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e1:SetTargetRange(1, 1)
  	e1:SetValue(s.rev)
  	c:RegisterEffect(e1)
  end
  function s.rev(e, re, r, rp, rc)
  	local c = e:GetHandler()
  	return bit.band(r, REASON_BATTLE) ~= 0 and (c == Duel.GetAttacker() or c == Duel.GetAttackTarget())
  end
  
  
source_text: Muscle
  If a player would take damage from a battle involving this card, they gain that much LP, instead.
target_text: -- Muscle
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--damage conversion
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_REVERSE_DAMAGE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e1:SetTargetRange(1, 1)
  	e1:SetValue(s.rev)
  	c:RegisterEffect(e1)
  end
  function s.rev(e, re, r, rp, rc)
  	local c = e:GetHandler()
  	return bit.band(r, REASON_BATTLE) ~= 0 and (c == Duel.GetAttacker() or c == Duel.GetAttackTarget())
  end
  
  