name: D/D/D
card_text: 2 "D/D" monsters
  Any effect that would inflict damage to you makes you gain that much LP, instead.
external_ids: local SETCARD_ID_0 = 0xaf --D/D
  
lua: local SETCARD_ID_0 = 0xaf --D/D
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--fusion material
  	aux.AddFusionProcFunRep(c, aux.FilterBoolFunction(Card.IsFusionSetCard, SETCARD_ID_0), 2, true)
  	c:EnableReviveLimit()
  	--damage conversion
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_REVERSE_DAMAGE)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e2:SetTargetRange(1, 0)
  	e2:SetValue(s.rev)
  	c:RegisterEffect(e2)
  end
  function s.rev(e, re, r, rp, rc)
  	return bit.band(r, REASON_EFFECT) ~= 0
  end
  
  
source_text: D/D/D
  2 "D/D" monsters
  Any effect that would inflict damage to you makes you gain that much LP, instead.
target_text: -- D/D/D
  local SETCARD_ID_0 = 0xaf --D/D
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--fusion material
  	aux.AddFusionProcFunRep(c, aux.FilterBoolFunction(Card.IsFusionSetCard, SETCARD_ID_0), 2, true)
  	c:EnableReviveLimit()
  	--damage conversion
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_REVERSE_DAMAGE)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e2:SetTargetRange(1, 0)
  	e2:SetValue(s.rev)
  	c:RegisterEffect(e2)
  end
  function s.rev(e, re, r, rp, rc)
  	return bit.band(r, REASON_EFFECT) ~= 0
  end
  
  