--ゴゴゴゴーレム
function c62476815.initial_effect(c)
	--battle des rep
	local e1=Effect.CreateEffect(c)
	e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
	e1:SetCode(EFFECT_DESTROY_REPLACE)
	e1:SetCountLimit(1)
	e1:SetTarget(c62476815.reptg)
	c:RegisterEffect(e1)
end
function c62476815.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return e:GetHandler():IsDefensePos()
		and e:GetHandler():IsReason(REASON_BATTLE) end
	return true
end
