Brotherhood
If you activate a "Fire Formation" Spell/Trap Card (except during the Damage Step): You can Special Summon this card from your hand, then you can Special Summon 1 "Fire Fist" monster from your GY, except "Brotherhood of the Fire Fist - Panda", also you cannot Special Summon monsters for the rest of this turn, except "Fire Fist" monsters. If a "Fire Fist" monster(s) you control would be destroyed by your opponent's card effect, you can send 1 face-up "Fire Formation" Spell/Trap you control to the GY instead. You can only use each effect of "Brotherhood of the Fire Fist - Panda" once per turn.
local SETCARD_ID_0 = 0x79 --Fire
local SETCARD_ID_1 = 0x7c --Fire

local SETCARD_ID_0 = 0x79 --Fire
local SETCARD_ID_1 = 0x7c --Fire
local s, id, o = GetID()
function s.initial_effect(c)
	--special summon
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
	e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_O)
	e1:SetProperty(EFFECT_FLAG_DELAY)
	e1:SetCode(EVENT_CHAINING)
	e1:SetRange(LOCATION_HAND)
	e1:SetCountLimit(1, id)
	e1:SetCondition(s.spcon)
	e1:SetTarget(s.sptg)
	e1:SetOperation(s.spop)
	c:RegisterEffect(e1)
	--destroy replace
	local e2 = Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_CONTINUOUS + EFFECT_TYPE_FIELD)
	e2:SetCode(EFFECT_DESTROY_REPLACE)
	e2:SetRange(LOCATION_MZONE)
	e2:SetCountLimit(1, id + 2)
	e2:SetTarget(s.desreptg)
	e2:SetValue(s.desrepval)
	c:RegisterEffect(e2)
end
function s.spcon(e, tp, eg, ep, ev, re, r, rp)
	return rp == tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL + TYPE_TRAP) and re:GetHandler():IsSetCard(SETCARD_ID_1)
end
function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and e:GetHandler():IsCanBeSpecialSummoned(e, 0, tp, false, false)
	end
	Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, e:GetHandler(), 1, 0, 0)
end
function s.spfilter(c, e, tp)
	return c:IsSetCard(SETCARD_ID_1) and not c:IsCode(id) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
end
function s.spop(e, tp, eg, ep, ev, re, r, rp)
	local c = e:GetHandler()
	if c:IsRelateToEffect(e) and Duel.SpecialSummon(c, 0, tp, tp, false, false, POS_FACEUP) ~= 0 then
		local g = Duel.GetMatchingGroup(aux.NecroValleyFilter(s.spfilter), tp, LOCATION_GRAVE, 0, nil, e, tp)
		if Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and g:GetCount() > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 1)) then
			Duel.BreakEffect()
			Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_SPSUMMON)
			local sg = g:Select(tp, 1, 1, nil)
			Duel.SpecialSummon(sg, 0, tp, tp, false, false, POS_FACEUP)
		end
	end
	local e1 = Effect.CreateEffect(e:GetHandler())
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
	e1:SetTargetRange(1, 0)
	e1:SetTarget(s.splimit)
	e1:SetReset(RESET_PHASE + PHASE_END)
	Duel.RegisterEffect(e1, tp)
end
function s.splimit(e, c)
	return not c:IsSetCard(SETCARD_ID_1)
end
function s.repfilter(c, tp)
	return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(SETCARD_ID_1) and c:IsLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
end
function s.tgfilter(c, e)
	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_1) and c:IsType(TYPE_SPELL + TYPE_TRAP) and not c:IsStatus(STATUS_DESTROY_CONFIRMED) and not c:IsImmuneToEffect(e)
end
function s.desreptg(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return rp == 1 - tp and eg:IsExists(s.repfilter, 1, nil, tp) and Duel.IsExistingMatchingCard(s.tgfilter, tp, LOCATION_ONFIELD, 0, 1, nil, e)
	end
	if Duel.SelectEffectYesNo(tp, e:GetHandler(), 96) then
		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOGRAVE)
		local g = Duel.SelectMatchingCard(tp, s.tgfilter, tp, LOCATION_ONFIELD, 0, 1, 1, nil, e)
		Duel.SendtoGrave(g, REASON_EFFECT + REASON_REPLACE)
		return true
	else
		return false
	end
end
function s.desrepval(e, c)
	return s.repfilter(c, e:GetHandlerPlayer())
end


Brotherhood
If you activate a "Fire Formation" Spell/Trap Card (except during the Damage Step): You can Special Summon this card from your hand, then you can Special Summon 1 "Fire Fist" monster from your GY, except "Brotherhood of the Fire Fist - Panda", also you cannot Special Summon monsters for the rest of this turn, except "Fire Fist" monsters. If a "Fire Fist" monster(s) you control would be destroyed by your opponent's card effect, you can send 1 face-up "Fire Formation" Spell/Trap you control to the GY instead. You can only use each effect of "Brotherhood of the Fire Fist - Panda" once per turn.
-- Brotherhood
local SETCARD_ID_0 = 0x79 --Fire
local SETCARD_ID_1 = 0x7c --Fire
local s, id, o = GetID()
function s.initial_effect(c)
	--special summon
	local e1 = Effect.CreateEffect(c)
	e1:SetDescription(aux.Stringid(id, 0))
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
	e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_TRIGGER_O)
	e1:SetProperty(EFFECT_FLAG_DELAY)
	e1:SetCode(EVENT_CHAINING)
	e1:SetRange(LOCATION_HAND)
	e1:SetCountLimit(1, id)
	e1:SetCondition(s.spcon)
	e1:SetTarget(s.sptg)
	e1:SetOperation(s.spop)
	c:RegisterEffect(e1)
	--destroy replace
	local e2 = Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_CONTINUOUS + EFFECT_TYPE_FIELD)
	e2:SetCode(EFFECT_DESTROY_REPLACE)
	e2:SetRange(LOCATION_MZONE)
	e2:SetCountLimit(1, id + 2)
	e2:SetTarget(s.desreptg)
	e2:SetValue(s.desrepval)
	c:RegisterEffect(e2)
end
function s.spcon(e, tp, eg, ep, ev, re, r, rp)
	return rp == tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL + TYPE_TRAP) and re:GetHandler():IsSetCard(SETCARD_ID_1)
end
function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and e:GetHandler():IsCanBeSpecialSummoned(e, 0, tp, false, false)
	end
	Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, e:GetHandler(), 1, 0, 0)
end
function s.spfilter(c, e, tp)
	return c:IsSetCard(SETCARD_ID_1) and not c:IsCode(id) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
end
function s.spop(e, tp, eg, ep, ev, re, r, rp)
	local c = e:GetHandler()
	if c:IsRelateToEffect(e) and Duel.SpecialSummon(c, 0, tp, tp, false, false, POS_FACEUP) ~= 0 then
		local g = Duel.GetMatchingGroup(aux.NecroValleyFilter(s.spfilter), tp, LOCATION_GRAVE, 0, nil, e, tp)
		if Duel.GetLocationCount(tp, LOCATION_MZONE) > 0 and g:GetCount() > 0 and Duel.SelectYesNo(tp, aux.Stringid(id, 1)) then
			Duel.BreakEffect()
			Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_SPSUMMON)
			local sg = g:Select(tp, 1, 1, nil)
			Duel.SpecialSummon(sg, 0, tp, tp, false, false, POS_FACEUP)
		end
	end
	local e1 = Effect.CreateEffect(e:GetHandler())
	e1:SetType(EFFECT_TYPE_FIELD)
	e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
	e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
	e1:SetTargetRange(1, 0)
	e1:SetTarget(s.splimit)
	e1:SetReset(RESET_PHASE + PHASE_END)
	Duel.RegisterEffect(e1, tp)
end
function s.splimit(e, c)
	return not c:IsSetCard(SETCARD_ID_1)
end
function s.repfilter(c, tp)
	return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(SETCARD_ID_1) and c:IsLocation(LOCATION_MZONE) and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
end
function s.tgfilter(c, e)
	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_1) and c:IsType(TYPE_SPELL + TYPE_TRAP) and not c:IsStatus(STATUS_DESTROY_CONFIRMED) and not c:IsImmuneToEffect(e)
end
function s.desreptg(e, tp, eg, ep, ev, re, r, rp, chk)
	if chk == 0 then
		return rp == 1 - tp and eg:IsExists(s.repfilter, 1, nil, tp) and Duel.IsExistingMatchingCard(s.tgfilter, tp, LOCATION_ONFIELD, 0, 1, nil, e)
	end
	if Duel.SelectEffectYesNo(tp, e:GetHandler(), 96) then
		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOGRAVE)
		local g = Duel.SelectMatchingCard(tp, s.tgfilter, tp, LOCATION_ONFIELD, 0, 1, 1, nil, e)
		Duel.SendtoGrave(g, REASON_EFFECT + REASON_REPLACE)
		return true
	else
		return false
	end
end
function s.desrepval(e, c)
	return s.repfilter(c, e:GetHandlerPlayer())
end

