Telepathic
When a Psychic-Type monster you control is destroyed by battle with an opponent's attacking monster: Target the opponent's monster; destroy that target, and if you do, gain LP equal to the destroyed monster's ATK on the field.
local s, id, o = GetID()
function s.initial_effect(c)
	--Activate
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_DESTROY + CATEGORY_RECOVER)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e1:SetCode(EVENT_BATTLE_DESTROYED)
	e1:SetCondition(s.condition)
	e1:SetTarget(s.target)
	e1:SetOperation(s.activate)
	c:RegisterEffect(e1)
end
function s.filter(c, tp)
	return c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_FACEUP) and c == Duel.GetAttackTarget() and c:IsRace(RACE_PSYCHO)
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return eg:IsExists(s.filter, 1, nil, tp)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	local at = Duel.GetAttacker()
	if chkc then
		return chkc == at
	end
	if chk == 0 then
		return at:IsControler(1 - tp) and at:IsRelateToBattle() and at:IsCanBeEffectTarget(e)
	end
	Duel.SetTargetCard(at)
	local atk = at:GetAttack()
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, at, 1, 0, 0)
	Duel.SetOperationInfo(0, CATEGORY_RECOVER, nil, 0, tp, atk)
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
	local a = Duel.GetFirstTarget()
	if a:IsRelateToEffect(e) then
		local atk = a:GetAttack()
		if Duel.Destroy(a, REASON_EFFECT) ~= 0 then
			Duel.Recover(tp, atk, REASON_EFFECT)
		end
	end
end


Telepathic
When a Psychic-Type monster you control is destroyed by battle with an opponent's attacking monster: Target the opponent's monster; destroy that target, and if you do, gain LP equal to the destroyed monster's ATK on the field.
-- Telepathic
local s, id, o = GetID()
function s.initial_effect(c)
	--Activate
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_DESTROY + CATEGORY_RECOVER)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e1:SetCode(EVENT_BATTLE_DESTROYED)
	e1:SetCondition(s.condition)
	e1:SetTarget(s.target)
	e1:SetOperation(s.activate)
	c:RegisterEffect(e1)
end
function s.filter(c, tp)
	return c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_FACEUP) and c == Duel.GetAttackTarget() and c:IsRace(RACE_PSYCHO)
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return eg:IsExists(s.filter, 1, nil, tp)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	local at = Duel.GetAttacker()
	if chkc then
		return chkc == at
	end
	if chk == 0 then
		return at:IsControler(1 - tp) and at:IsRelateToBattle() and at:IsCanBeEffectTarget(e)
	end
	Duel.SetTargetCard(at)
	local atk = at:GetAttack()
	Duel.SetOperationInfo(0, CATEGORY_DESTROY, at, 1, 0, 0)
	Duel.SetOperationInfo(0, CATEGORY_RECOVER, nil, 0, tp, atk)
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
	local a = Duel.GetFirstTarget()
	if a:IsRelateToEffect(e) then
		local atk = a:GetAttack()
		if Duel.Destroy(a, REASON_EFFECT) ~= 0 then
			Duel.Recover(tp, atk, REASON_EFFECT)
		end
	end
end

