Flower
Cannot be Normal Summoned/Set. Must first be Special Summoned (from your hand) by Tributing 1 "Flower Cardian" monster, except "Flower Cardian Clover with Boar". If this card is Special Summoned: Draw 1 card, and if you do, show it, then, if it is a "Flower Cardian" monster, you can destroy 1 monster your opponent controls. Otherwise, send it to the Graveyard.
local SETCARD_ID_0 = 0xe6 --Flower

local SETCARD_ID_0 = 0xe6 --Flower
local s, id, o = GetID()
function s.initial_effect(c)
	c:EnableReviveLimit()
	--special summon rule
	local e1 = Effect.CreateEffect(c)
	e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetRange(LOCATION_HAND)
	e1:SetCode(EFFECT_SPSUMMON_PROC)
	e1:SetCondition(s.hspcon)
	e1:SetTarget(s.hsptg)
	e1:SetOperation(s.hspop)
	c:RegisterEffect(e1)
	--draw
	local e2 = Effect.CreateEffect(c)
	e2:SetDescription(aux.Stringid(id, 0))
	e2:SetCategory(CATEGORY_DRAW + CATEGORY_DESTROY)
	e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
	e2:SetCode(EVENT_SPSUMMON_SUCCESS)
	e2:SetTarget(s.target)
	e2:SetOperation(s.operation)
	c:RegisterEffect(e2)
end
function s.hspfilter(c, tp)
	return c:IsSetCard(SETCARD_ID_0) and not c:IsCode(id) and Duel.GetMZoneCount(tp, c) > 0 and (c:IsControler(tp) or c:IsFaceup())
end
function s.hspcon(e, c)
	if c == nil then
		return true
	end
	local tp = c:GetControler()
	return Duel.CheckReleaseGroupEx(tp, s.hspfilter, 1, REASON_SPSUMMON, false, nil, tp)
end
function s.hsptg(e, tp, eg, ep, ev, re, r, rp, chk, c)
	local g = Duel.GetReleaseGroup(tp, false, REASON_SPSUMMON):Filter(s.hspfilter, nil, tp)
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_RELEASE)
	local tc = g:SelectUnselect(nil, tp, false, true, 1, 1)
	if tc then
		e:SetLabelObject(tc)
		return true
	else
		return false
	end
end
function s.hspop(e, tp, eg, ep, ev, re, r, rp, c)
	local g = e:GetLabelObject()
	Duel.Release(g, REASON_SPSUMMON)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return true
	end
	Duel.SetTargetPlayer(tp)
	Duel.SetTargetParam(1)
	Duel.SetOperationInfo(0, CATEGORY_DRAW, nil, 0, tp, 1)
end
function s.operation(e, tp, eg, ep, ev, re, r, rp)
	local p, d = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER, CHAININFO_TARGET_PARAM)
	if Duel.Draw(p, d, REASON_EFFECT) ~= 0 then
		local tc = Duel.GetOperatedGroup():GetFirst()
		Duel.ConfirmCards(1 - tp, tc)
		if tc:IsType(TYPE_MONSTER) and tc:IsSetCard(SETCARD_ID_0) then
			local g = Duel.GetMatchingGroup(aux.TRUE, tp, 0, LOCATION_MZONE, nil)
			if g:GetCount() > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 1)) then
				Duel.BreakEffect()
				local sg = g:Select(tp, 1, 1, nil)
				Duel.HintSelection(sg)
				Duel.Destroy(sg, REASON_EFFECT)
			end
		else
			Duel.BreakEffect()
			Duel.SendtoGrave(tc, REASON_EFFECT)
		end
		Duel.ShuffleHand(tp)
	end
end


Flower
Cannot be Normal Summoned/Set. Must first be Special Summoned (from your hand) by Tributing 1 "Flower Cardian" monster, except "Flower Cardian Clover with Boar". If this card is Special Summoned: Draw 1 card, and if you do, show it, then, if it is a "Flower Cardian" monster, you can destroy 1 monster your opponent controls. Otherwise, send it to the Graveyard.
-- Flower
local SETCARD_ID_0 = 0xe6 --Flower
local s, id, o = GetID()
function s.initial_effect(c)
	c:EnableReviveLimit()
	--special summon rule
	local e1 = Effect.CreateEffect(c)
	e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetRange(LOCATION_HAND)
	e1:SetCode(EFFECT_SPSUMMON_PROC)
	e1:SetCondition(s.hspcon)
	e1:SetTarget(s.hsptg)
	e1:SetOperation(s.hspop)
	c:RegisterEffect(e1)
	--draw
	local e2 = Effect.CreateEffect(c)
	e2:SetDescription(aux.Stringid(id, 0))
	e2:SetCategory(CATEGORY_DRAW + CATEGORY_DESTROY)
	e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
	e2:SetCode(EVENT_SPSUMMON_SUCCESS)
	e2:SetTarget(s.target)
	e2:SetOperation(s.operation)
	c:RegisterEffect(e2)
end
function s.hspfilter(c, tp)
	return c:IsSetCard(SETCARD_ID_0) and not c:IsCode(id) and Duel.GetMZoneCount(tp, c) > 0 and (c:IsControler(tp) or c:IsFaceup())
end
function s.hspcon(e, c)
	if c == nil then
		return true
	end
	local tp = c:GetControler()
	return Duel.CheckReleaseGroupEx(tp, s.hspfilter, 1, REASON_SPSUMMON, false, nil, tp)
end
function s.hsptg(e, tp, eg, ep, ev, re, r, rp, chk, c)
	local g = Duel.GetReleaseGroup(tp, false, REASON_SPSUMMON):Filter(s.hspfilter, nil, tp)
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_RELEASE)
	local tc = g:SelectUnselect(nil, tp, false, true, 1, 1)
	if tc then
		e:SetLabelObject(tc)
		return true
	else
		return false
	end
end
function s.hspop(e, tp, eg, ep, ev, re, r, rp, c)
	local g = e:GetLabelObject()
	Duel.Release(g, REASON_SPSUMMON)
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return true
	end
	Duel.SetTargetPlayer(tp)
	Duel.SetTargetParam(1)
	Duel.SetOperationInfo(0, CATEGORY_DRAW, nil, 0, tp, 1)
end
function s.operation(e, tp, eg, ep, ev, re, r, rp)
	local p, d = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER, CHAININFO_TARGET_PARAM)
	if Duel.Draw(p, d, REASON_EFFECT) ~= 0 then
		local tc = Duel.GetOperatedGroup():GetFirst()
		Duel.ConfirmCards(1 - tp, tc)
		if tc:IsType(TYPE_MONSTER) and tc:IsSetCard(SETCARD_ID_0) then
			local g = Duel.GetMatchingGroup(aux.TRUE, tp, 0, LOCATION_MZONE, nil)
			if g:GetCount() > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 1)) then
				Duel.BreakEffect()
				local sg = g:Select(tp, 1, 1, nil)
				Duel.HintSelection(sg)
				Duel.Destroy(sg, REASON_EFFECT)
			end
		else
			Duel.BreakEffect()
			Duel.SendtoGrave(tc, REASON_EFFECT)
		end
		Duel.ShuffleHand(tp)
	end
end

