Laval
1 Tuner + 1 or more non-Tuner FIRE monsters
This card gains effects based on the number of "Laval" monsters in your Graveyard:
● 2+: Once per turn, if this card attacks a Defense Position monster, it can attack once again in a row.
● 3+: If this card attacks a Defense Position monster, inflict piercing Battle Damage to your opponent.
local s, id, o = GetID()
function s.initial_effect(c)
	--synchro summon
	aux.AddSynchroProcedure(c, nil, aux.NonTuner(Card.IsAttribute, ATTRIBUTE_FIRE), 1)
	c:EnableReviveLimit()
	--chain attack
	local e1 = Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
	e1:SetCode(EVENT_BATTLED)
	e1:SetOperation(s.caop1)
	c:RegisterEffect(e1)
	local e2 = Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
	e2:SetCode(EVENT_DAMAGE_STEP_END)
	e2:SetOperation(s.caop2)
	e2:SetLabelObject(e1)
	c:RegisterEffect(e2)
	--pierce
	local e3 = Effect.CreateEffect(c)
	e3:SetType(EFFECT_TYPE_SINGLE)
	e3:SetCode(EFFECT_PIERCE)
	e3:SetCondition(s.pcon)
	c:RegisterEffect(e3)
end
function s.caop1(e, tp, eg, ep, ev, re, r, rp)
	local a = Duel.GetAttacker()
	local d = Duel.GetAttackTarget()
	if e:GetHandler() == a and d and d:IsDefensePos() then
		e:SetLabel(1)
	else
		e:SetLabel(0)
	end
end
function s.caop2(e, tp, eg, ep, ev, re, r, rp)
	local c = e:GetHandler()
	if e:GetLabelObject():GetLabel() == 1 and c:IsRelateToBattle() and c:IsChainAttackable() and Duel.GetMatchingGroupCount(Card.IsSetCard, tp, LOCATION_GRAVE, 0, nil, 0x39) >= 2 then
		Duel.ChainAttack()
	end
end
function s.pcon(e)
	return Duel.GetMatchingGroupCount(Card.IsSetCard, e:GetHandler():GetControler(), LOCATION_GRAVE, 0, nil, 0x39) >= 3
end


Laval
1 Tuner + 1 or more non-Tuner FIRE monsters
This card gains effects based on the number of "Laval" monsters in your Graveyard:
● 2+: Once per turn, if this card attacks a Defense Position monster, it can attack once again in a row.
● 3+: If this card attacks a Defense Position monster, inflict piercing Battle Damage to your opponent.
-- Laval
local s, id, o = GetID()
function s.initial_effect(c)
	--synchro summon
	aux.AddSynchroProcedure(c, nil, aux.NonTuner(Card.IsAttribute, ATTRIBUTE_FIRE), 1)
	c:EnableReviveLimit()
	--chain attack
	local e1 = Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
	e1:SetCode(EVENT_BATTLED)
	e1:SetOperation(s.caop1)
	c:RegisterEffect(e1)
	local e2 = Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
	e2:SetCode(EVENT_DAMAGE_STEP_END)
	e2:SetOperation(s.caop2)
	e2:SetLabelObject(e1)
	c:RegisterEffect(e2)
	--pierce
	local e3 = Effect.CreateEffect(c)
	e3:SetType(EFFECT_TYPE_SINGLE)
	e3:SetCode(EFFECT_PIERCE)
	e3:SetCondition(s.pcon)
	c:RegisterEffect(e3)
end
function s.caop1(e, tp, eg, ep, ev, re, r, rp)
	local a = Duel.GetAttacker()
	local d = Duel.GetAttackTarget()
	if e:GetHandler() == a and d and d:IsDefensePos() then
		e:SetLabel(1)
	else
		e:SetLabel(0)
	end
end
function s.caop2(e, tp, eg, ep, ev, re, r, rp)
	local c = e:GetHandler()
	if e:GetLabelObject():GetLabel() == 1 and c:IsRelateToBattle() and c:IsChainAttackable() and Duel.GetMatchingGroupCount(Card.IsSetCard, tp, LOCATION_GRAVE, 0, nil, 0x39) >= 2 then
		Duel.ChainAttack()
	end
end
function s.pcon(e)
	return Duel.GetMatchingGroupCount(Card.IsSetCard, e:GetHandler():GetControler(), LOCATION_GRAVE, 0, nil, 0x39) >= 3
end

