Gift
Gain 300 LP for each monster on the field.
local s, id, o = GetID()
function s.initial_effect(c)
	--Activate
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_RECOVER)
	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_FREE_CHAIN)
	e1:SetHintTiming(0, 0x1c1)
	e1:SetTarget(s.target)
	e1:SetOperation(s.activate)
	c:RegisterEffect(e1)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return Duel.GetFieldGroupCount(tp, LOCATION_MZONE, LOCATION_MZONE) > 0
	end
	local rec = Duel.GetFieldGroupCount(tp, LOCATION_MZONE, LOCATION_MZONE) * 300
	Duel.SetTargetPlayer(tp)
	Duel.SetTargetParam(rec)
	Duel.SetOperationInfo(0, CATEGORY_RECOVER, nil, 0, tp, rec)
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
	local p = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER)
	local rec = Duel.GetFieldGroupCount(tp, LOCATION_MZONE, LOCATION_MZONE) * 300
	Duel.Recover(p, rec, REASON_EFFECT)
end


Gift
Gain 300 LP for each monster on the field.
-- Gift
local s, id, o = GetID()
function s.initial_effect(c)
	--Activate
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_RECOVER)
	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_FREE_CHAIN)
	e1:SetHintTiming(0, 0x1c1)
	e1:SetTarget(s.target)
	e1:SetOperation(s.activate)
	c:RegisterEffect(e1)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return Duel.GetFieldGroupCount(tp, LOCATION_MZONE, LOCATION_MZONE) > 0
	end
	local rec = Duel.GetFieldGroupCount(tp, LOCATION_MZONE, LOCATION_MZONE) * 300
	Duel.SetTargetPlayer(tp)
	Duel.SetTargetParam(rec)
	Duel.SetOperationInfo(0, CATEGORY_RECOVER, nil, 0, tp, rec)
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
	local p = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER)
	local rec = Duel.GetFieldGroupCount(tp, LOCATION_MZONE, LOCATION_MZONE) * 300
	Duel.Recover(p, rec, REASON_EFFECT)
end

