Gyroid
The first time this card would be destroyed by battle each turn, it is not destroyed.
local s, id, o = GetID()
function s.initial_effect(c)
	--battle indes
	local e1 = Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_SINGLE)
	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
	e1:SetRange(LOCATION_MZONE)
	e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
	e1:SetCountLimit(1)
	e1:SetValue(s.valcon)
	c:RegisterEffect(e1)
end
function s.valcon(e, re, r, rp)
	return bit.band(r, REASON_BATTLE) ~= 0
end


Gyroid
The first time this card would be destroyed by battle each turn, it is not destroyed.
-- Gyroid
local s, id, o = GetID()
function s.initial_effect(c)
	--battle indes
	local e1 = Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_SINGLE)
	e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
	e1:SetRange(LOCATION_MZONE)
	e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
	e1:SetCountLimit(1)
	e1:SetValue(s.valcon)
	c:RegisterEffect(e1)
end
function s.valcon(e, re, r, rp)
	return bit.band(r, REASON_BATTLE) ~= 0
end

